Skip to content
Documentation menu

Build with MapMap

Every page is also served as raw markdown. Append .md to the URL. Agents: /llms.txt · /pricing.json

Prefer to watch? The video library covers the same ground in 12 short videos.

MapMap in 90 seconds · 1:36 · all videos

Get started

Mint a key, make the first call, and learn the rules every endpoint shares.

Products

The guide behind each product in the header menu: point clouds, Roadside, the live globe, the voice copilot and MapMap Nav.

Routing and analysis

Routes with lorry dimensions and ADR constraints, plus the analysis endpoints around them.

Truck and ADR routing

Which lorry dimensions and ADR 8.6.4 tunnel restrictions our routing enforces, what each engine backend needs, and the limits stated plainly.

Analysis APIs

Endpoints around routing: isochrones, distance/duration matrices, along-route search, GPS-trace map-matching, trip reports and progress against a plan, elevation profiles, jurisdiction-gated safety cameras, traffic incidents, cheapest fuel, EV charging and trip planning, and weather along a route, with parameters, complete requests and real response shapes.

Route optimisation

Multi-vehicle, multi-stop optimisation with truck dimensional and ADR constraints, fed by our own routing matrices.

Measured clearance on a route

Whether a vehicle passes under what a survey measured, rather than under what the map records: the corridor walk, the four verdicts, why every figure carries its bound, and why unsurveyed ground is never reported as clear.

Origin-destination analysis

Travel-time matrices for planners: chunking under the 10,000-element cap, a dependency-free script, a kepler.gl-ready CSV of OD pairs, and origins coloured by time to the nearest destination.

Truck restriction data, measured

What one UK OpenStreetMap extract actually records about height, weight and HGV limits: the counts, the denominators, where coverage is good, where it is thin, and what that means for a route we return.

Mapbox-compatible API

Change the base URL and the token: Mapbox's Directions, Matrix, Isochrone, Optimization v1 and Geocoding v6 and v5 paths, served by MapMap's own endpoints and billed as them, with what maps, what is refused and why.

Maps and data

Tiles, styles and Studio, your own data on the map, and the file formats behind both.

Maps, tiles & Studio

Hosted vector tiles, TileJSON and styles, the Studio style editor, fonts and sprites, and the @mapmap/maps web SDK.

Vehicle avatars

Draw the user's vehicle as one of MapMap's own 3D-rendered cars: AvatarPuck in the web SDK, the hosted sprite and model contract for native apps, self-hosting and the artwork licence.

Add your own data

Your data on a MapMap map: clustered pins with PlacesLayer, choropleths and heatmaps through the raw MapLibre escape hatch, PMTiles you host on your own bucket, raster, image and video sources, hover and selection with feature-state, insertion points, custom WebGL layers, MapLibre Native snippets for iOS and Android, reachability rings with IsochroneLayer, GeoJSON overlays on static map images, and the honest limits.

Buses: positions, stops and timetables

England's buses as display data: live positions, NaPTAN stops and BODS lines on a map with TransitStopsLayer, stops near a point and timetabled departures at a stop, the label that says what a live entry is, coverage and the OGL credits.

Live layers: events, weather, wind and aurora

The @mapmap/maps/live subpath: EarthEventsLayer, WeatherLayer, WindLayer and AuroraLayer on the globe and the flat map, what each reads from the gateway, the honest labels, credits and licences.

Leaflet, OpenLayers, deck.gl, Cesium & QGIS

Render MapMap tiles in the clients that are not MapLibre GL JS: a verified snippet each for Leaflet, OpenLayers and deck.gl, what Cesium genuinely cannot do, and the two ways QGIS reads our tiles.

File formats

The channel-index JSON schema, the installed territory package's on-disk layout, and the .drive.jsonl replay-corpus line schema, with a sample corpus.

Data collection & the probe flywheel

How on-device aggregation turns navigation into road-segment statistics without a trajectory ever leaving the vehicle: what a ProbeBatch holds, the three guarantees enforced in code, and the opt-in gate.

SDKs and apps

Web, Android and iOS packages, and in-car surfaces.

SDK reference

Every public export of each published SDK, generated from the released type declarations and sources.

@mapmap/maps reference

Generated from the published @mapmap/maps 0.25.1 declarations: every export of the main entry point and each subpath, with signatures, options and stated defaults, and an example for every class and factory.

@mapmap/points reference

Generated from the published @mapmap/points 0.6.0 declarations: every export of the point-cloud SDK, with signatures, options and stated defaults, and examples for the layer, COPC streaming and its errors.

@mapmap/core reference

Generated from the published @mapmap/core 0.4.0 declarations: the WASM guidance session, navigation state machine, route adapters, ADR tunnel checks and polyline helpers, with examples.

@mapmap/tile reference

Generated from the published @mapmap/tile 0.1.0 declarations: tile, tileWithReport, init and their options, with examples.

@mapmap/react-native reference

Generated from the published @mapmap/react-native 0.4.0 declarations: the navigation bridge, its mock, events and custom regions, with examples.

@mapmap/voice reference (beta)

Beta. Generated from the published @mapmap/voice 0.1.0-beta.1 declarations: the guidance phrasebook, renderer and voice registry, with examples.

MapMapKit (iOS) reference

Generated from the MapMapKit 0.8.0 release sources: every public Swift declaration in MapMapKit, MapMapValhalla and MapMapCarPlay, including the generated core and Ferrostar bindings, with examples.

ai.mapmap:core (Android) reference

Generated from the ai.mapmap:core 0.8.0 sources jar: every public Kotlin declaration, the hand-written API and the generated core and Ferrostar bindings, with examples.

Agents and machine payments

Connect an assistant over MCP, teach it with skills, and let it pay for its own calls.

MCP server

Connect Claude Desktop, Claude Code or any MCP client to the full tool surface: routing, dangerous-goods compliance, measured clearance, geocoding, matrix, optimisation, place verification, local geometry and map styling, over stdio or HTTP, hosted or self-hosted.

MCP tool reference

Every tool on the hosted MCP server, grouped by job: what it does, every input with type, default and limits, the output fields, the caveats the server states, whether it needs a key, and one real call. Generated from the server's own schemas.

Use MapMap from any AI assistant

The recipe book: connect the hosted MCP server to ChatGPT, Claude, Cursor, Grok, Perplexity, VS Code or your own agent framework in a minute each, and how an agent mints its own free key mid-task.

Agent skills

Eleven knowledge modules that teach a coding agent how to build with MapMap: truck/ADR routing, the web SDK, branded map design, fleet VRP, syncing with an existing telematics platform, offline maps, machine payments, migrating from Mapbox or Google Maps, self-host ops. The know-how layer that complements the MCP tools.

View links

Agent answers that end on a map: a plan carried in a URL that opens on mapmap.ai with the stops drawn and each route redrawn, no key needed. What it carries, the 6,000 character cap and the canonical encoding.

Machine payments (x402)

The 402 response shape, the two ways an agent pays (prepaid credit, and x402 on Base or Solana), and the top-up bridge.

The autonomous pay loop

One narrated walkthrough of an agent paying end to end: discover tools over MCP, call with its own key, hit a 402, top up with x402, and continue, with no human. Real wire shapes, plus a runnable script.

Worked recipes

Whole jobs end to end, including moving across from another provider.

Run it yourself

The Docker distro on your own hardware, and signed offline territory packages.

Reference

The endpoint surface, generated from the gateway's own OpenAPI document.

Licensing

What each of the three legal surfaces covers, and the ODbL boundary.

Troubleshooting

The web SDK's error messages link straight to the entries below.

Container element not found

The element you pass to the map constructor must exist in the DOM before the map is created. In React, create the map in an effect (after first render), pass a ref's current, and clean up with map.remove().

Map renders 0px tall

MapLibre sizes the canvas from its container, and a container with no explicit height collapses to 0px: a blank “working” map. Give the container (or its parent) a fixed height, and beware absolute inset-0 with Tailwind: MapLibre's own .maplibregl-map { position: relative } rule can win the cascade over the single-class .absolute utility. Size the map div directly off a fixed-height parent instead.

Two copies of maplibre-gl

If your bundle contains maplibre-gl twice (a direct dependency alongside the SDK's), protocol registrations and instanceof checks silently miss each other, and tiles stop loading with no error. De-duplicate: keep one maplibre-gl version, and check with npm ls maplibre-gl.

WebGL unavailable or context lost

Map rendering needs a WebGL context. Headless browsers, virtual machines and very old GPUs may not provide one, and browsers cap how many live contexts a page can hold: destroy maps you no longer show (map.remove()) rather than hiding them. In CI, run Chromium with --use-gl=swiftshader (or Playwright's default software GL) to get a software context.

401 from the hosted API

The gateway rejected your key. Send it as Authorization: Bearer snk_… (or ?api_key=snk_…), check its state with the quota-free GET /v1/keys/self, and remember provisional keys expire after 72 hours until you click the verification email. No key yet? One call, free tier.