Skip to content

Instantly share code, notes, and snippets.

@TravelTime-Frontend
Created February 21, 2023 13:10
POST /v4/time-filter 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": [
],
"arrival_searches": [
{
"id": "backward search example",
"departure_location_ids": [
"Hyde Park",
"ZSL London Zoo"
],
"arrival_location_id": "London center",
"transportation": {
"type": "public_transport"
},
"arrival_time": "2018-07-09T08:00:00Z",
"travel_time": 1900,
"properties": [
"travel_time"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment