Quick start
Hand a map library the style URL. It fetches the tiles, fonts and everything else on its own.
<link rel="stylesheet" href="https://unpkg.com/maplibre-gl@5.6.2/dist/maplibre-gl.css"> <script src="https://unpkg.com/maplibre-gl@5.6.2/dist/maplibre-gl.js"></script> <div id="map" style="height: 420px"></div> <script> new maplibregl.Map({ container: 'map', style: 'https://tiles.anytransport.co.uk/v1/styles/dark/style.json', center: [-0.1276, 51.5072], zoom: 11 }); </script>
For a picture rather than a map, ask for a static image:
curl -o london.png "https://tiles.anytransport.co.uk/v1/styles/light/static/-0.1276,51.5072,12/800x500@2x.png"
Styles
A style is a MapLibre style document: which data to draw and how. /v1/styles lists them all with ready-made URLs. Every URL inside a style points back at this server, so it works as is.
Every style works in MapLibre GL JS, MapLibre Native (iOS and Android) and Mapbox GL JS v1. In MapLibre GL JS 5 and later the map is a globe when zoomed out.
Add ?3d=false for flat building footprints instead of 3D buildings. It works on style URLs, raster tiles, raster TileJSON and static images.
Add ?lang= with a language code to label the map in that language where names exist, for example /v1/styles/dark/style.json?lang=cy for Welsh. Places without a name in that language keep their local name.
Add ?font= to change the typeface of every label. See Label fonts. Options combine, for example ?font=inter&lang=cy&3d=false.
Limits and caching
There are no keys and no hard rate limit. Please cache on your side too.
- Tiles and images are cached for a day, on our side and in your browser (
Cache-Control: max-age=86400). - The first request for a raster tile or static image is drawn on the spot and takes up to a couple of seconds. Repeats come from the cache.
- Static images are at most 2048 × 2048 before density, and density goes up to 3x.
- The data is a planet snapshot from 12 October 2026.
Access-Control-Allow-Origin: *, so you can use it straight from the browser.Raster tiles
Square map images in the standard XYZ scheme, drawn on the server from a style. Use these with Leaflet, OpenLayers, QGIS or anything else that takes an XYZ URL.
tileSize: 512, zoomOffset: -1.https://tiles.anytransport.co.uk/v1/styles/light/tiles/256/14/8186/5448@2x.png
Raster TileJSON
A TileJSON 3.0 description of a style's raster tiles, for tools that want one URL instead of a template. All three parameters are optional and default to 256, 1 and png.
Static images
One image of any view, for emails, link previews or anywhere a live map is overkill. Zoom matches MapLibre's, so a view in the explorer comes out the same.
Tilesets
The raw data behind the styles. Inside Great Britain and Ireland, basemap tiles already include the detailed buildings, places and stations. Each tileset has a TileJSON document listing its layers and the fields in each.
Vector tiles
Mapbox Vector Tiles, for when you bring your own styling. Tiles are gzipped when your client accepts it, which every browser does. A tile with nothing in it returns 204 No Content. .pbf works as well as .mvt.
curl --compressed -o tile.mvt "https://tiles.anytransport.co.uk/v1/tilesets/basemap/14/8186/5448.mvt"
Feature lookup
What is at a point: the roads, buildings, places and land under or near a coordinate, nearest first, as GeoJSON. Each feature has a tilequery object with its distance in metres and its layer.
curl "https://tiles.anytransport.co.uk/v1/tilesets/basemap/query/-1.8985,52.4776.json?radius=30&layers=roads,pois"
Fonts
Glyph ranges for map labels, in the format MapLibre expects. A font stack is a comma separated list and the first font we have is used. /v1/fonts lists what is available: Geist, Inter, Lexend, Atkinson Hyperlegible Next, Instrument Sans, Bricolage Grotesque and Noto Sans, each in Regular, Medium and SemiBold (Bold where a family has no SemiBold). Noto Sans fills in scripts the others do not cover.
Label fonts
Every style labels the map in Geist. Add ?font= to a style URL to swap it for another family across every label, keeping the same weights. Noto Sans still fills in scripts the chosen font does not cover, so Welsh, Greek or Chinese names still show up.
new maplibregl.Map({ container: 'map', style: 'https://tiles.anytransport.co.uk/v1/styles/colour-light/style.json?font=atkinson' });
/v1/label-fonts lists the options, with default set on Geist. An unknown name returns a 400 that lists the valid ones.
Errors
Errors come back as JSON with a short message in error and a normal HTTP status.
{ "error": "No style called \"satellite\". See /v1/styles for the list." }MapLibre, Leaflet, OpenLayers
const map = new maplibregl.Map({ container: 'map', style: 'https://tiles.anytransport.co.uk/v1/styles/light/style.json', center: [-2.2426, 53.4808], zoom: 10 }); // Your own data on top map.on('load', () => { map.addSource('stops', { type: 'geojson', data: '/stops.geojson' }); map.addLayer({ id: 'stops', type: 'circle', source: 'stops', paint: { 'circle-radius': 4 } }); });
const map = L.map('map').setView([53.4808, -2.2426], 11); // {r} becomes @2x on high density screens L.tileLayer('https://tiles.anytransport.co.uk/v1/styles/light/tiles/256/{z}/{x}/{y}{r}.png', { maxZoom: 20 }).addTo(map);
import Map from 'ol/Map.js'; import View from 'ol/View.js'; import TileLayer from 'ol/layer/Tile.js'; import XYZ from 'ol/source/XYZ.js'; import { fromLonLat } from 'ol/proj.js'; new Map({ target: 'map', layers: [new TileLayer({ source: new XYZ({ url: 'https://tiles.anytransport.co.uk/v1/styles/light/tiles/256/{z}/{x}/{y}@2x.png', tilePixelRatio: 2 }) })], view: new View({ center: fromLonLat([-2.2426, 53.4808]), zoom: 11 }) });
import requests url = 'https://tiles.anytransport.co.uk/v1/styles/dark/static/auto/1200x630.png' r = requests.get(url, params={'markers': '-0.1276,51.5072;-2.2426,53.4808'}, timeout=30) r.raise_for_status() with open('card.png', 'wb') as f: f.write(r.content)
Changelog
- Label fonts: pick Inter, Lexend, Atkinson Hyperlegible Next, Instrument Sans, Bricolage Grotesque or Noto Sans with
?font=, listed at/v1/label-fonts.
- Twelve styles: greyscale and full colour, light and dark, plus colour dawn and dusk, each with a clean version.
- Detailed buildings, places and stations for Great Britain and Ireland, with station icons by network.
- One-way arrows and zebra crossings at street level.
- Labels in other languages with
?lang=, flat maps with?3d=false, and the feature lookup endpoint.
- New tile server. Styles, vector tiles and fonts are under
/v1, with raster tiles in PNG, WebP and JPEG at up to 3x density. - Static images with bearing, pitch, markers and an auto position that fits the markers.
- The map explorer and these docs.
- Terrain and hillshading were removed from both styles.