Map Info

Returns information about currently supported countries. This endpoints works great together with Supported Locations. It is useful when you have an application that can do searches in any country that we support, you can use Supported Locations to get the map name for a certain point and then use this endpoint to check what features are available for that map. That way you could show fares for routes in the maps that support it.

Response Body Json Attributes

  • maps
    array[object]
    • name
      string
      A two-letter map code. This does not always correspond to ISO 3166-2
    • features
      object
      • public_transport
        object | optional
        Public transport support information. Public transport is not supported if this object is missing.
        • date_start
          date in extended ISO-8601 format
        • date_end
          date in extended ISO-8601 format
      • fares
        boolean
      • postcodes
        boolean

Example Request

GET /v4/map-info HTTP/1.1
Host: api.traveltimeapp.com
X-Application-Id: ...
X-Api-Key: ...

Response Body

{
    "maps": [
        {
            "name": "lu",
            "features": {
                "public_transport": {
                    "date_start": "2017-06-07T00:00:00+02:00",
                    "date_end": "2017-08-10T00:00:00+02:00"
                },
                "fares": false,
                "postcodes": false
            }
        },
        {
            "name": "ca_est",
            "features": {
                "public_transport": {
                    "date_start": "2017-05-23T06:00:00+02:00",
                    "date_end": "2017-07-26T06:00:00+02:00"
                },
                "fares": false,
                "postcodes": false
            }
        },
        {
            "name": "ae",
            "features": {
                "public_transport": {
                    "date_start": "2017-05-22T22:00:00+02:00",
                    "date_end": "2017-07-25T22:00:00+02:00"
                },
                "fares": false,
                "postcodes": false
            }
        },
        {
            "name": "us_estn",
            "features": {
                "public_transport": {
                    "date_start": "2017-06-04T06:00:00+02:00",
                    "date_end": "2017-08-07T06:00:00+02:00"
                },
                "fares": false,
                "postcodes": false
            }
        },
        {
            "name": "ca_mst",
            "features": {
                "public_transport": {
                    "date_start": "2017-05-23T08:00:00+02:00",
                    "date_end": "2017-07-26T08:00:00+02:00"
                },
                "fares": false,
                "postcodes": false
            }
        },
        {
            "name": "ca_ast",
            "features": {
                "public_transport": {
                    "date_start": "2017-05-23T05:00:00+02:00",
                    "date_end": "2017-07-26T05:00:00+02:00"
                },
                "fares": false,
                "postcodes": false
            }
        },
        {
            "name": "ro",
            "features": {
                "public_transport": {
                    "date_start": "2017-05-16T23:00:00+02:00",
                    "date_end": "2017-07-19T23:00:00+02:00"
                },
                "fares": false,
                "postcodes": false
            }
        },
        {
            "name": "us_pst",
            "features": {
                "public_transport": {
                    "date_start": "2017-06-04T09:00:00+02:00",
                    "date_end": "2017-08-07T09:00:00+02:00"
                },
                "fares": false,
                "postcodes": false
            }
        },
        {
            "name": "kw",
            "features": {
                "public_transport": {
                    "date_start": "2017-05-17T23:00:00+02:00",
                    "date_end": "2017-07-20T23:00:00+02:00"
                },
                "fares": false,
                "postcodes": false
            }
        },
        {
            "name": "gr",
            "features": {
                "public_transport": {
                    "date_start": "2017-06-25T23:00:00+02:00",
                    "date_end": "2017-08-28T23:00:00+02:00"
                },
                "fares": false,
                "postcodes": false
            }
        },
        {
            "name": "ie",
            "features": {
                "public_transport": {
                    "date_start": "2017-06-12T01:00:00+02:00",
                    "date_end": "2017-08-15T01:00:00+02:00"
                },
                "fares": false,
                "postcodes": true
            }
        },
        {
            "name": "ca_pst",
            "features": {
                "public_transport": {
                    "date_start": "2017-05-23T09:00:00+02:00",
                    "date_end": "2017-07-26T09:00:00+02:00"
                },
                "fares": false,
                "postcodes": false
            }
        },
        {
            "name": "th",
            "features": {
                "fares": false,
                "postcodes": false
            }
        },
        {
            "name": "fi",
            "features": {
                "public_transport": {
                    "date_start": "2017-06-24T23:00:00+02:00",
                    "date_end": "2017-08-27T23:00:00+02:00"
                },
                "fares": false,
                "postcodes": false
            }
        },
        {
            "name": "be",
            "features": {
                "public_transport": {
                    "date_start": "2017-05-21T00:00:00+02:00",
                    "date_end": "2017-07-24T00:00:00+02:00"
                },
                "fares": false,
                "postcodes": false
            }
        },
        {
            "name": "dk",
            "features": {
                "public_transport": {
                    "date_start": "2017-05-30T00:00:00+02:00",
                    "date_end": "2017-08-02T00:00:00+02:00"
                },
                "fares": false,
                "postcodes": false
            }
        },
        {
            "name": "no",
            "features": {
                "public_transport": {
                    "date_start": "2017-05-23T00:00:00+02:00",
                    "date_end": "2017-07-26T00:00:00+02:00"
                },
                "fares": false,
                "postcodes": false
            }
        },
        {
            "name": "do",
            "features": {
                "public_transport": {
                    "date_start": "2017-05-24T06:00:00+02:00",
                    "date_end": "2017-07-27T06:00:00+02:00"
                },
                "fares": false,
                "postcodes": false
            }
        },
        {
            "name": "nl",
            "features": {
                "public_transport": {
                    "date_start": "2017-05-21T00:00:00+02:00",
                    "date_end": "2017-07-24T00:00:00+02:00"
                },
                "fares": false,
                "postcodes": false
            }
        },
        {
            "name": "sa",
            "features": {
                "public_transport": {
                    "date_start": "2017-05-24T23:00:00+02:00",
                    "date_end": "2017-07-27T23:00:00+02:00"
                },
                "fares": false,
                "postcodes": false
            }
        },
        {
            "name": "us_csts",
            "features": {
                "public_transport": {
                    "date_start": "2017-06-04T07:00:00+02:00",
                    "date_end": "2017-08-07T07:00:00+02:00"
                },
                "fares": false,
                "postcodes": false
            }
        },
        {
            "name": "fr",
            "features": {
                "public_transport": {
                    "date_start": "2017-06-23T00:00:00+02:00",
                    "date_end": "2017-08-26T00:00:00+02:00"
                },
                "fares": false,
                "postcodes": false
            }
        },
        {
            "name": "gb",
            "features": {
                "public_transport": {
                    "date_start": "2017-06-12T01:00:00+02:00",
                    "date_end": "2017-08-15T01:00:00+02:00"
                },
                "fares": true,
                "postcodes": true
            }
        },
        {
            "name": "es",
            "features": {
                "public_transport": {
                    "date_start": "2017-05-23T00:00:00+02:00",
                    "date_end": "2017-07-26T00:00:00+02:00"
                },
                "fares": false,
                "postcodes": false
            }
        },
        {
            "name": "au",
            "features": {
                "public_transport": {
                    "date_start": "2017-05-20T16:00:00+02:00",
                    "date_end": "2017-07-23T16:00:00+02:00"
                },
                "fares": false,
                "postcodes": false
            }
        },
        {
            "name": "il",
            "features": {
                "public_transport": {
                    "date_start": "2017-05-22T23:00:00+02:00",
                    "date_end": "2017-07-25T23:00:00+02:00"
                },
                "fares": false,
                "postcodes": false
            }
        },
        {
            "name": "it",
            "features": {
                "public_transport": {
                    "date_start": "2017-05-23T00:00:00+02:00",
                    "date_end": "2017-07-26T00:00:00+02:00"
                },
                "fares": false,
                "postcodes": false
            }
        },
        {
            "name": "us_ests",
            "features": {
                "public_transport": {
                    "date_start": "2017-06-04T06:00:00+02:00",
                    "date_end": "2017-08-07T06:00:00+02:00"
                },
                "fares": false,
                "postcodes": false
            }
        },
        {
            "name": "lt",
            "features": {
                "public_transport": {
                    "date_start": "2017-05-22T23:00:00+02:00",
                    "date_end": "2017-07-25T23:00:00+02:00"
                },
                "fares": false,
                "postcodes": false
            }
        },
        {
            "name": "de",
            "features": {
                "public_transport": {
                    "date_start": "2017-06-07T00:00:00+02:00",
                    "date_end": "2017-08-10T00:00:00+02:00"
                },
                "fares": false,
                "postcodes": false
            }
        },
        {
            "name": "ca_cst",
            "features": {
                "public_transport": {
                    "date_start": "2017-05-23T07:00:00+02:00",
                    "date_end": "2017-07-26T07:00:00+02:00"
                },
                "fares": false,
                "postcodes": false
            }
        },
        {
            "name": "us_cstn",
            "features": {
                "public_transport": {
                    "date_start": "2017-06-04T07:00:00+02:00",
                    "date_end": "2017-08-07T07:00:00+02:00"
                },
                "fares": false,
                "postcodes": false
            }
        },
        {
            "name": "ch",
            "features": {
                "public_transport": {
                    "date_start": "2017-05-20T00:00:00+02:00",
                    "date_end": "2017-07-23T00:00:00+02:00"
                },
                "fares": false,
                "postcodes": false
            }
        },
        {
            "name": "us_mst",
            "features": {
                "public_transport": {
                    "date_start": "2017-06-04T08:00:00+02:00",
                    "date_end": "2017-08-07T08:00:00+02:00"
                },
                "fares": false,
                "postcodes": false
            }
        },
        {
            "name": "us_akst",
            "features": {
                "public_transport": {
                    "date_start": "2017-06-05T10:00:00+02:00",
                    "date_end": "2017-08-08T10:00:00+02:00"
                },
                "fares": false,
                "postcodes": false
            }
        },
        {
            "name": "es_ca",
            "features": {
                "public_transport": {
                    "date_start": "2017-05-23T01:00:00+02:00",
                    "date_end": "2017-07-26T01:00:00+02:00"
                },
                "fares": false,
                "postcodes": false
            }
        },
        {
            "name": "se",
            "features": {
                "public_transport": {
                    "date_start": "2017-05-21T00:00:00+02:00",
                    "date_end": "2017-07-24T00:00:00+02:00"
                },
                "fares": false,
                "postcodes": false
            }
        }
    ]
}