Routes API implemented for travel time
This commit is contained in:
parent
5349088ba0
commit
ce9956ea52
7 changed files with 5632 additions and 1 deletions
70
code/json/routing_routeapi.json
Normal file
70
code/json/routing_routeapi.json
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
{
|
||||
"routes": [
|
||||
{
|
||||
"legs": [
|
||||
{
|
||||
"stepsOverview": {
|
||||
"multiModalSegments": [
|
||||
{
|
||||
"stepStartIndex": 0,
|
||||
"stepEndIndex": 2,
|
||||
"navigationInstruction": {
|
||||
"instructions": "Walk to Finsbury Park"
|
||||
},
|
||||
"travelMode": "WALK"
|
||||
},
|
||||
{
|
||||
"stepStartIndex": 3,
|
||||
"stepEndIndex": 3,
|
||||
"navigationInstruction": {
|
||||
"instructions": "Subway towards Brixton"
|
||||
},
|
||||
"travelMode": "TRANSIT"
|
||||
},
|
||||
{
|
||||
"stepStartIndex": 4,
|
||||
"stepEndIndex": 4,
|
||||
"navigationInstruction": {
|
||||
"instructions": "Walk to Euston"
|
||||
},
|
||||
"travelMode": "WALK"
|
||||
},
|
||||
{
|
||||
"stepStartIndex": 5,
|
||||
"stepEndIndex": 5,
|
||||
"navigationInstruction": {
|
||||
"instructions": "Subway towards Morden via Bank"
|
||||
},
|
||||
"travelMode": "TRANSIT"
|
||||
},
|
||||
{
|
||||
"stepStartIndex": 6,
|
||||
"stepEndIndex": 6,
|
||||
"navigationInstruction": {
|
||||
"instructions": "Walk to Bank Station"
|
||||
},
|
||||
"travelMode": "WALK"
|
||||
},
|
||||
{
|
||||
"stepStartIndex": 7,
|
||||
"stepEndIndex": 7,
|
||||
"navigationInstruction": {
|
||||
"instructions": "Light rail towards Woolwich Arsenal"
|
||||
},
|
||||
"travelMode": "TRANSIT"
|
||||
},
|
||||
{
|
||||
"stepStartIndex": 8,
|
||||
"stepEndIndex": 9,
|
||||
"travelMode": "WALK"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"distanceMeters": 22438,
|
||||
"duration": "3463s",
|
||||
"staticDuration": "3463s"
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue