listBusAreasLinesStopsStations

To retrieve the list of all area, lines, bus stations and stops

url: http://html5.sasabus.org/backend/sasabusdb/listBusAreasLinesStopsStations?callback=function123

parameters:

  • callback: the javascript function to call when data is ready (JSONP standard)

Response (the structure is quite complex because is a graph. I suggest to use the java classes used in the project to parse this informations).


function123({
 areas: [
   {
    busLines: [
      {
       area: 
        {
         __refid: "ID0"
        },
       busStops: [
         {
          busStation: 
           {
            busLines: [
              {
               area: 
                {
                 __refid: "ID0"
                },
               busStops: [
                 {
                  busStation: 
                   {
                    busLines: [
                      {
                       __refid: "ID1"
                      },
                      {
                       area: 
                        {
                         __refid: "ID0"
                        },
                       busStops: [
                         {
                          busStation: 
                           {
                            busLines: [
                              {
                               __refid: "ID1"
                              },
                              {
                               area: 
                                {
                                 __refid: "ID0"
                                },
                               busStops: [
                                 {
                                  busStation: 
                                   {
                                    busLines: [
                                      {
                                       __refid: "ID2"
                                      },
                                      {
                                       area: 
                                        {
                                         __refid: "ID0"
                                        },
                                       busStops: [
                                         {
                                          busStation: 
                                           {
                                            busLines: [
                                              {
                                               __refid: "ID1"
                                              },
                                              {
                                               __refid: "ID2"
                                              },
                                              {
                                               __refid: "ID3"
                                              },
                                              {
                                               area: 
                                                {
                                                 __refid: "ID0"
                                                },
                                               busStops: [
                                                 {
                                                  busStation: 
                                                   {
                                                    busLines: [
                                                      {
                                                       area: 
                                                        {
                                                         __refid: "ID0"
                                                        },
                                                       busStops: [
                                                         {
                                                          __refid: "ID4"
                                                         },
                                                         {
                                                          busStation: 
                                                           {
                                                            __refid: "ID5"
                                                           },
                                                          id: 5134,
                                                          lat: 46.4873555555556,
                                                          lon: 11.3477222222222,
                                                          __id: "ID1193"
                                                         },
                                                         {
                                                          __refid: "ID6"
                                                         },
                                                         {
                                                          busStation: 
                                                           {
                                                            busLines: [
                                                              {
                                                               __refid: "ID7"
                                                              },
                                                              {
                                                               __refid: "ID8"
                                                              },
                                                              {
                                                               area: 
                                                                {
                                                                 __refid: "ID0"
                                                                },
                                                               busStops: [
                                                                 {
                                                                  __refid: "ID4"
                                                                 },
                                                                 {
                                                                  __refid: "ID9"
                                                                 },
                                                                 {
                                                                  busStation: 
                                                                   {
                                                                    busLines: [
                                                                      {
                                                                       __refid: "ID1"
                                                                      },
                                                                      {
                                                                       __refid: "ID2"
                                                                      },
                                                                      {
                                                                       area: 
                                                                        {
                                                                         __refid: "ID0"
                                                                        },
                                                                       busStops: [
                                                                         {
                                                                          busStation: 
                                                                           {
                                                                            busLines: [
                                                                              {
                                                                               __refid: "ID10"
                                                                              },
                                                                              {
                                                                               area: 
                                                                                {
                                                                                 __refid: "ID0"
                                                                                },
                                                                               busStops: [
                                                                                 {
                                                                                  __refid: "ID11"
                                                                                 },
                                                                                 {
                                                                                  busStation: 
                                                                                   {
                                                                                    busLines: [
                                                                                      {
                                                                                       __refid: "ID8"
                                                                                      },
                                                                                      {
                                                                                       area: 
                                                                                        {
                                                                                         __refid: "ID0"
                                                                                        },
                                                                                       busStops: [
                                                                                         {
                                                                                          busStation: 
                                                                                           {
                                                                                            busLines: [
                                                                                              {
                                                                                               __refid: "ID12"
                                                                                              }
                                                                                             ],
                                                                                            busStops: [
                                                                                              {
                                                                                               __refid: "ID13"
                                                                                              }
                                                                                             ],
                                                                                            id: ":5301:",
                                                                                            name_de: "(Bozen) Cavour Str.",
                                                                                            name_it: "(Bolzano) via Cavour"
                                                                                           },
                                                                                          __id: "ID13",
                                                                                          id: 5301,
                                                                                          lat: 46.5015875,
                                                                                          lon: 11.3596747222222
                                                                                         },
                                                                                         {
                                                                                          busStation: 
                                                                                           {
                                                                                            busLines: [
                                                                                              {
                                                                                               __refid: "ID2"
                                                                                              },
                                                                                              {
                                                                                               __refid: "ID7"
                                                                                              },
                                                                                              {
                                                                                               __refid: "ID14"
                                                                                              },
                                                                                              {
                                                                                               __refid: "ID12"
                                                                                              }
                                                                                             ],
                                                                                            busStops: [
                                                                                              {
                                                                                               __refid: "ID15"
                                                                                              },
                                                                                              {
                                                                                               busStation: 
                                                                                                {
                                                                                                 __refid: "ID16"
                                                                                                },
                                                                                               id: 5112,
                                                                                               lat: 46.5070463888889,
                                                                                               lon: 11.3472197222222,
                                                                                               __id: "ID1212"
                                                                                              }
                                                                                             ],
                                                                                            __id: "ID16",
                                                                                            id: ":5112:5113:",
                                                                                            name_de: "(Bozen) Cadorna Str. 2",
                                                                                            name_it: "(Bolzano) via Cadorna 2"
                                                                                           },
                                                                                          __id: "ID15",
                                                                                          id: 5113,
                                                                                          lat: 46.5073327777778,
                                                                                          lon: 11.3471386111111
                                                                                         },
                                                                                         {
                                                                                          __refid: "ID17"
                                                                                         },
                                                                                         {
                                                                                          busStation: 
                                                                                           {
                                                                                            busLines: [
                                                                                              {
                                                                                               __refid: "ID1"
                                                                                              },
                                                                                              {
                                                                                               __refid: "ID2"
                                                                                              },
                                                                                              {
                                                                                               __refid: "ID10"
                                                                                              },
                                                                                              {
                                                                                               __refid: "ID7"
                                                                                              },
                                                                                              {
                                                                                               __refid: "ID14"
                                                                                              },
                                                                                              {
                                                                                               __refid: "ID3"
                                                                                              },
                                                                                              {
                                                                                               __refid: "ID8"
                                                                                              },
                                                                                              {
                                                                                               __refid: "ID12"
                                                                                              },
                                                                                              {
                                                                                               area: 
                                                                                                {
                                                                                                 __refid: "ID0"
                                                                                                },
                                                                                               busStops: [
                                                                                                 {
                                                                                                  busStation: 
                                                                                                   {
                                                                                                    busLines: [
                                                                                                      {
                                                                                                       __refid: "ID18"
                                                                                                      },
                                                                                                      {
                                                                                                       area: 
                                                                                                        {
                                                                                                         __refid: "ID0"
                                                                                                        },
                                                                                                       busStops: [
                                                                                                         {
                                                                                                          busStation: 
                                                                                                           {
                                                                                                            busLines: [
                                                                                                              {
                                                                                                               __refid: "ID18"
                                                                                                              },
                                                                                                              {
                                                                                                               __refid: "ID19"
                                                                                                              }
                                                                                                             ],
                                                                                                            busStops: [
                                                                                                              {
                                                                                                               busStation: 
                                                                                                                {
                                                                                                                 __refid: "ID20"
                                                                                                                },
                                                                                                               id: 5183,
                                                                                                               lat: 46.4770644444444,
                                                                                                               lon: 11.3276611111111,
                                                                                                               __id: "ID1120"
                                                                                                              },
                                                                                                              {
                                                                                                               __refid: "ID21"
                                                                                                              }
                                                                                                             ],
                                                                                                            __id: "ID20",
                                                                                                            id: ":5183:5184:",
                                                                                                            name_de: "(Bozen) Buozzi Str. 2",
                                                                                                            name_it: "(Bolzano) via Buozzi 2"
                                                                                                           },
                                                                                                          __id: "ID21",
                                                                                                          id: 5184,
                                                                                                          lat: 46.4762780555556,
                                                                                                          lon: 11.3273108333333
                                                                                                         },
                                                                                                         {
                                                                                                          busStation: 
                                                                                                           {
                                                                                                            busLines: [
                                                                                                              {
                                                                                                               __refid: "ID18"
                                                                                                              },
                                                                                                              {
                                                                                                               __refid: "ID19"
                                                                                                              }
                                                                                                             ],
                                                                                                            busStops: [
                                                                                                              {
                                                                                                               busStation: 
                                                                                                                {
                                                                                                                 __refid: "ID22"
                                                                                                                },
                                                                                                               id: 5164,
                                                                                                               lat: 46.5032697222222,
                                                                                                               lon: 11.3248022222222,
                                                                                                               __id: "ID1129"
                                                                                                              },
                                                                                                              {
                                                                                                               __refid: "ID23"
                                                                                                              }
                                                                                                             ],
                                                                                                            __id: "ID22",
                                                                                                            id: ":5163:5164:",
                                                                                                            name_de: "(Bozen) V. Veneto Str. 2",
                                                                                                            name_it: "(Bolzano) via V. Veneto 2"
                                                                                                           },
                                                                                                          __id: "ID23",
                                                                                                          id: 5163,
                                                                                                          lat: 46.5031894444444,
                                                                                                          lon: 11.3253233333333
                                                                                                         },
                                                                                                         {
                                                                                                          busStation: 
                                                                                                           {
                                                                                                            busLines: [
                                                                                                              {
                                                                                                               __refid: "ID2"
                                                                                                              },
                                                                                                              {
                                                                                                               __refid: "ID18"
                                                                                                              },
                                                                                                              {
                                                                                                               __refid: "ID24"
                                                                                                              },
                                                                                                              {
                                                                                                               __refid: "ID19"
                                                                                                              },
                                                                                                              {
                                                                                                               __refid: "ID25"
                                                                                                              },
                                                                                                              {
                                                                                                               area: 
                                                                                                                {
                                                                                                                 __refid: "ID0"
                                                                                                                },
                                                                                                               busStops: [
                                                                                                                 {
                                                                                                                  __refid: "ID26"
                                                                                                                 },
                                                                                                                 {
                                                                                                                  __refid: "ID27"
                                                                                                                 },
                                                                                                                 {
                                                                                                                  busStation: 
                                                                                                                   {
                                                                                                                    busLines: [
                                                                                                                      {
                                                                                                                       __refid: "ID2"
                                                                                                                      },
                                                                                                                      {
                                                                                                                       __refid: "ID18"
                                                                                                                      },
                                                                                                                      {
                                                                                                                       __refid: "ID19"
                                                                                                                      },
                                                                                                                      {
                                                                                                                       __refid: "ID25"
                                                                                                                      },
                                                                                                                      {
                                                                                                                       __refid: "ID28"
                                                                                                                      }
                                                                                                                     ],
                                                                                                                    busStops: [
                                                                                                                      {
                                                                                                                       busStation: 
                                                                                                                        {
                                                                                                                         __refid: "ID29"
                                                                                                                        },
                                                                                                                       id: 5176,
                                                                                                                       lat: 46.4870455555556,
                                                                                                                       lon: 11.3186730555556,
                                                                                                                       __id: "ID1052"
                                                                                                                      },
                                                                                                                      {
                                                                                                                       __refid: "ID30"
                                                                                                                      }
                                                                                                                     ],
                                                                                                                    __id: "ID29",
                                                                                                                    id: ":5175:5176:",
                                                                                                                    name_de: "(Bozen) Reschen Str. 2",
                                                                                                                    name_it: "(Bolzano) via Resia 2"
                                                                                                                   },
                                                                                                                  __id: "ID30",
                                                                                                                  id: 5175,
                                                                                                                  lat: 46.4867502777778,
                                                                                                                  lon: 11.3187563888889
                                                                                                                 },
                                                                                                                 {
                                                                                                                  busStation: 
                                                                                                                   {
                                                                                                                    busLines: [
                                                                                                                      {
                                                                                                                       __refid: "ID25"
                                                                                                                      },
                                                                                                                      {
                                                                                                                       area: 
                                                                                                                        {
                                                                                                                         __refid: "ID0"
                                                                                                                        },
                                                                                                                       busStops: [
                                                                                                                         {
                                                                                                                          __refid: "ID26"
                                                                                                                         },
                                                                                                                         {
                                                                                                                          __refid: "ID31"
                                                                                                                         },
                                                                                                                         {
                                                                                                                          __refid: "ID32"
                                                                                                                         },
                                                                                                                         {
                                                                                                                          busStation: 
                                                                                                                           {
                                                                                                                            busLines: [
                                                                                                                              {
                                                                                                                               __refid: "ID2"
                                                                                                                              },
                                                                                                                              {
                                                                                                                               __refid: "ID33"
                                                                                                                              },
                                                                                                                              {
                                                                                                                               __refid: "ID28"
                                                                                                                              }
                                                                                                                             ],
                                                                                                                            busStops: [
                                                                                                                              {
                                                                                                                               __refid: "ID34"
                                                                                                                              },
                                                                                                                              {
                                                                                                                               busStation: 
                                                                                                                                {
                                                                                                                                 __refid: "ID35"
                                                                                                                                },
                                                                                                                               id: 5220,
                                                                                                                               lat: 46.4883247222222,
                                                                                                                               lon: 11.3194733333333,
                                                                                                                               __id: "ID1050"
                                                                                                                              }
                                                                                                                             ],
                                                                                                                            __id: "ID35",
                                                                                                                            id: ":5220:5337:",
                                                                                                                            name_de: "(Bozen) Sassari Str. 2",
                                                                                                                            name_it: "(Bolzano) via Sassari 2"
                                                                                                                           },
                                                                                                                          __id: "ID34",
                                                                                                                          id: 5337,
                                                                                                                          lat: 46.48837,
                                                                                                                          lon: 11.3198913888889
                                                                                                                         },
                                                                                                                         {
                                                                                                                          busStation: 
                                                                                                                           {
                                                                                                                            busLines: [
                                                                                                                              {
                                                                                                                               __refid: "ID3"
                                                                                                                              },
                                                                                                                              {
                                                                                                                               __refid: "ID18"
                                                                                                                              },
                                                                                                                              {
                                                                                                                               __refid: "ID19"
                                                                                                                              },
                                                                                                                              {
                                                                                                                               __refid: "ID33"
                                                                                                                              },
                                                                                                                              {
                                                                                                                               __refid: "ID28"
                                                                                                                              }
                                                                                                                             ],
                                                                                                                            busStops: [
                                                                                                                              {
                                                                                                                               busStation: 
                                                                                                                                {
                                                                                                                                 __refid: "ID36"
                                                                                                                                },
                                                                                                                               id: 885,
                                                                                                                               lat: 46.4928825,
                                                                                                                               lon: 11.3150086111111,
                                                                                                                               __id: "ID1037"
                                                                                                                              },
                                                                                                                              {
                                                                                                                               __refid: "ID37"
                                                                                                                              }
                                                                                                                             ],
                                                                                                                            __id: "ID36",
                                                                                                                            id: ":884:885:",
                                                                                                                            name_de: "(Bozen) Stadium Europa",
                                                                                                                            name_it: "(Bolzano) stadio Europa"
                                                                                                                           },
                                                                                                                          __id: "ID37",
                                                                                                                          id: 884,
                                                                                                                          lat: 46.4927266666667,
                                                                                                                          lon: 11.3149741666667
                                                                                                                         },
                                                                                                                         {
                                                                                                                          busStation: 
                                                                                                                           {
                                                                                                                            busLines: [
                                                                                                                              {
                                                                                                                               __refid: "ID18"
                                                                                                                              },
                                                                                                                              {
                                                                                                                               area: 
                                                                                                                                {
                                                                                                                                 __refid: "ID0"
                                                                                                                                },
                                                                                                                               busStops: [
                                                                                                                                 {
                                                                                                                                  busStation: 
                                                                                                                                   {
                                                                                                                                    busLines: [
                                                                                                                                      {
                                                                                                                                       __refid: "ID7"
                                                                                                                                      },
                                                                                                                                      {
                                                                                                                                       __refid: "ID38"
                                                                                                                                      },
                                                                                                                                      {
                                                                                                                                       area: 
                                                                                                                                        {
                                                                                                                                         __refid: "ID0"
                                                                                                                                        },
                                                                                                                                       busStops: [
                                                                                                                                         {
                                                                                                                                          __refid: "ID39"
                                                                                                                                         },
                                                                                                                                         {
                                                                                                                                          busStation: 
                                                                                                                                           {
                                                                                                                                            busLines: [
                                                                                                                                              {
                                                                                                                                               __refid: "ID40"
                                                                                                                                              }
                                                                                                                                             ],
...
...

 

0 Attachments
25787 Views
Comments
No comments yet. Be the first.