calcRoute

This method calculated a route between two bus stations.

url: http://html5.sasabus.org/backend/sasabusdb/calcRoute?startBusStationId=:5142:&endBusStationId=:745:748:&yyyymmddhhmm=201309201200&callback=function123

parameters:

  • callback: the javascript function to call when data is ready (JSONP standard)
  • startBusStationId: the start bus station. The id can be retrieved from listBusAreasLinesStopsStations
  • endBusStationId: the target bus station. The id can be retrieved from listBusAreasLinesStopsStations
  • yyyymmddhhmm: the date / time for departure

Response


function123({
ConResCtxt: [
"3b.02599598.1379362079#1"
],
ConnectionList: 
{
Connection: [
{
ConSectionList: 
{
ConSection: [
{
Journey: [
{
JourneyAttributeList: 
{
JourneyAttribute: [
{
Attribute: 
{
AttributeVariant: [
{
Text: "Lin   7B",
type: "NORMAL"
}
],
type: "NAME"
}
},
{
Attribute: 
{
AttributeVariant: [
{
Text: "Bus",
type: "SHORT"
},
{
Text: "Linea   ",
type: "NORMAL"
},
{
Text: "Linea   ",
type: "LONG"
}
],
type: "CATEGORY"
}
},
{
Attribute: 
{
AttributeVariant: [
{
Text: "SAS",
type: "SHORT"
},
{
Text: "SASA",
type: "NORMAL"
},
{
Text: "SASA",
type: "LONG"
}
],
type: "OPERATOR"
}
},
{
Attribute: 
{
AttributeVariant: [
{
Text: "7B",
type: "NORMAL"
}
],
type: "NUMBER"
}
},
{
Attribute: 
{
AttributeVariant: [
{
Text: "(Bolzano) Passeggiata dei Castani - (Bozen) Koeste",
type: "NORMAL"
}
],
type: "DIRECTION"
}
},
{
Attribute: 
{
AttributeVariant: [
{
Text: "Heimatbetriebshof BZ DEP;DEPOSITO BOLZANO",
type: "NORMAL"
}
],
type: ""
}
},
{
Attribute: 
{
AttributeVariant: [
{
Text: "vedi linea 7A siehe Linie 7A",
type: "NORMAL"
}
],
type: ""
}
}
]
},
PassList: 
{
BasicStop: [
{
Arr: 
{
Time: "00d12:22:00"
},
Dep: 
{
Time: "00d12:22:00"
},
Station: 
{
externalId: "001010167#86",
externalStationNr: "001010167",
name: "(Bolzano) via S. Geltrude 2 - (Bozen) St. Gertraud",
type: "WGS84",
x: "11349636",
y: "46486447"
}
},
{
Arr: 
{
Time: "00d12:23:00"
},
Dep: 
{
Time: "00d12:23:00"
},
Station: 
{
externalId: "001010043#86",
externalStationNr: "001010043",
name: "(Bolzano) via S. Geltrude 1 - (Bozen) St. Gertraud",
type: "WGS84",
x: "11347712",
y: "46487346"
}
},

....
....

 

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