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, check the Map Info.

Request Body Json Attributes

Response Body Json Attributes

  • locations
    array[object]
    • id
      string
      Location id that you specified in the request
    • map_name
      string
      To get features of a specific map, use map-info endpoint
  • unsupported_locations
    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"
  ]
}