Created
October 23, 2018 12:49
-
-
Save LouisaKB/52c629b4bdf88a6c225e72fdb6b0bb74 to your computer and use it in GitHub Desktop.
Request
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST /v4/routes HTTP/1.1 | |
Host: api.traveltimeapp.com | |
Content-Type: application/json | |
Accept: application/json | |
X-Application-Id: ... | |
X-Api-Key: ... | |
{ | |
"locations": [ | |
{ | |
"id": "London center", | |
"coords": { | |
"lat": 51.508930, | |
"lng": -0.131387 | |
} | |
}, | |
{ | |
"id": "Hyde Park", | |
"coords": { | |
"lat": 51.508824, | |
"lng": -0.167093 | |
} | |
}, | |
{ | |
"id": "ZSL London Zoo", | |
"coords": { | |
"lat": 51.536067, | |
"lng": -0.153596 | |
} | |
} | |
], | |
"departure_searches": [ | |
{ | |
"id": "departure search example", | |
"departure_location_id": "London center", | |
"arrival_location_ids": [ | |
"Hyde Park", | |
"ZSL London Zoo" | |
], | |
"transportation": { | |
"type": "driving" | |
}, | |
"departure_time": "2018-09-17T08:00:00Z", | |
"properties": ["travel_time", "distance", "route"] | |
} | |
], | |
"arrival_searches": [ | |
{ | |
"id": "arrival search example", | |
"departure_location_ids": [ | |
"Hyde Park", | |
"ZSL London Zoo" | |
], | |
"arrival_location_id": "London center", | |
"transportation": { | |
"type": "public_transport" | |
}, | |
"arrival_time": "2018-09-17T08:00:00Z", | |
"properties": ["travel_time", "distance", "route", "fares"], | |
"range": { | |
"enabled": true, | |
"max_results": 1, | |
"width": 1800 | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment