Supported Locations
Find out what points are supported by our api. The returned map name for a point can be used to determine what features are supported. See also the Map Info endpoint.
Request Body Json Attributes
-
array[object]
Response Body Json Attributes
-
array[object]
-
stringLocation id that you specified in the request
-
stringAn internal map id. The first two characters usually correspond to the
ISO 3166-2
standard (e.gth
,ie
) sometimes followed by additional characters (e.gca_pst
,us_pst
).
To get features of a specific map, use the map info endpoint -
array[string]In case the location is in more than one map, other map ids are listed here.
-
-
array[string]Array that contains ids of locations that are unsupported.
Example Request
POST /v4/supported-locations HTTP/1.1
Host: api.traveltimeapp.com
Content-Type: application/json
X-Application-Id: ...
X-Api-Key: ...
{
"locations": [
{
"id": "Kaunas",
"coords": {
"lat": 54.900008,
"lng": 23.957734
}
},
{
"id": "London",
"coords": {
"lat": 51.506756,
"lng": -0.128050
}
},
{
"id": "Bangkok",
"coords": {
"lat": 13.761866,
"lng": 100.544818
}
},
{
"id": "Lisbon",
"coords": {
"lat": 38.721869,
"lng": -9.138549
}
}
]
}
Response Body
{
"locations": [
{
"id": "Kaunas",
"map_name": "lt"
},
{
"id": "London",
"map_name": "gb"
},
{
"id": "Bangkok",
"map_name": "th"
}
],
"unsupported_locations": [
"Lisbon"
]
}