Map Tiles
Copy link

Map tiles are included with every plan, including the free Basic key.

To authenticate with the tiles server, include key GET parameter with each tile request. The value of the parameter must be Application Id that is given upon signing up.

Access URL
Copy link

Our tiles service supports raster and vector tiles which can be accessed by adding tiles server URL to your project. URL that should be used depends on the style and type of tiles that should be used.

Raster
Copy link

https://tiles.traveltimeapp.com/STYLE_IDENTIFIER/{z}/{x}/{y}.png?key=YOUR_APP_ID

Vector
Copy link

https://tiles.traveltimeapp.com/styles/STYLE_IDENTIFIER/style.json

Only the tile data requests (/data/…/{z}/{x}/{y}.pbf) require the key parameter — style definitions, fonts and sprites are served without it.

Usage with MapLibre GL JS:

const map = new maplibregl.Map({
  container: "map",
  style: "https://tiles.traveltimeapp.com/styles/traveltime-light/style.json",
  // Only the vector tile requests need the API key, so append it
  // to .pbf requests under /data/ and leave everything else untouched.
  transformRequest: (url) =>
    url.includes("/data/") && url.endsWith(".pbf")
      ? { url: `${url}${url.includes("?") ? "&" : "?"}key=YOUR_APP_ID` }
      : { url }
});

Tiles can be zoomed up to level 22. It is important to add this parameter to chosen slippy map library as it might throw errors otherwise.

Styles
Copy link

TravelTime Light

identifier: traveltime-light

Raster URL: https://tiles.traveltimeapp.com/traveltime-light/{z}/{x}/{y}.png?key=YOUR_APP_ID

Vector style URL: https://tiles.traveltimeapp.com/styles/traveltime-light/style.json

TravelTime Light

TravelTime Dark

identifier: traveltime-dark

Raster URL: https://tiles.traveltimeapp.com/traveltime-dark/{z}/{x}/{y}.png?key=YOUR_APP_ID

Vector style URL: https://tiles.traveltimeapp.com/styles/traveltime-dark/style.json

TravelTime Dark

Positron

identifier: positron

Raster URL: https://tiles.traveltimeapp.com/positron/{z}/{x}/{y}.png?key=YOUR_APP_ID

Vector style URL: https://tiles.traveltimeapp.com/styles/positron/style.json

Positron

OSM Bright

identifier: osm-bright

Raster URL: https://tiles.traveltimeapp.com/osm-bright/{z}/{x}/{y}.png?key=YOUR_APP_ID

Vector style URL: https://tiles.traveltimeapp.com/styles/osm-bright/style.json

OSM Bright

Guide on how to use these tiles with Leaflet is available here.

Attribution
Copy link

Copyright requires attribution information to be added to the map window. When using raster tiles, the correct attribution is:

Map data &copy; <a href="https://www.openstreetmap.org/">OpenStreetMap</a> | Created with <a href="https://traveltime.com" target="_blank">TravelTime API</a>

Vector styles include the © OpenMapTiles © OpenStreetMap contributors credit, which MapLibre shows automatically. Add the TravelTime credit yourself, for example with MapLibre's customAttribution option.