Documentation menu
API endpoints
126 public endpoints, one page each. Every page on this index is generated at build time from the document the gateway publishes at /openapi.json, so what you read here is what that deployment declares, not a second copy of it maintained by hand.
gateway 0.3.0 · read from https://api.mapmap.ai/openapi.json on 2026-11-12 · 50 admin and console operations are not listed
The rules these endpoints share, authentication, coordinate order, quotas, the error model and the ADR tunnel codes, are defined once on API conventions. For the narrative version with worked requests, read the API reference guide.
Mapbox-compatible paths
Directions, Matrix, Isochrone, Optimization v1 and Geocoding paths in Mapbox's shape, each served and priced as the MapMap endpoint it wraps.
Mapbox-compatible Matrix.
Mapbox-compatible Directions. Metered exactly as `GET /route/v1`: one unit per started block of 20 waypoints, premium on the `truck` profile.
Legacy Mapbox Geocoding v5 (`mapbox.places`), forward or, for a `lon,lat` query, reverse. One standard unit.
Mapbox-compatible Isochrone.
Mapbox-compatible Optimization v1. Billed as the optimise units plus one route unit.
Mapbox Geocoding v6 forward search. One standard unit.
Mapbox Geocoding v6 reverse lookup. One standard unit.
Routing
Routes for every profile, with truck and ADR restrictions, the OSRM-compatible URL surface, map matching, and what a route passes along the way.
Finds the least-cost meeting point of several locations.
Snaps each location to the road graph.
A route for any profile, with Valhalla-shaped request and response bodies and the `adr` dangerous-goods extension.
Places along a route matching a query, each priced with its real detour through the routing engine.
Where a vehicle is against its plan, computed statelessly: nothing about the position is stored.
Distance and duration of a route or trace broken down by road class, administrative area, toll, bridge, tunnel and surface.
OSRM-compatible route endpoint.
Map matching to per-edge attributes.
Map matching to a route.
Camera-verified incidents in force near a point, in a box, or along a route shape.
Safety cameras along a route shape.
Plans a chain of errands against a hard arrival time.
Traffic incidents and closures along a route shape.
Short spoken lines about the heritage a route passes, positioned along it.
What a journey passes, as spoken sentences positioned along the route.
The curated UK zone dataset, with provenance.
Matrix
Many-to-many travel times and distances, synchronously or as an asynchronous job.
Optimisation and jobs
Multi-vehicle optimisation, re-planning mid-shift, drive-every-street coverage, clustering, and the asynchronous job lane with its webhooks.
Route-optimisation endpoint. `/optimize` is an alias.
Re-plan a fleet mid-shift. `/optimize/replan` is an alias.
Capacity-constrained clustering.
Turn-by-turn guidance for one drive of a coverage plan.
Re-plan the rest of a coverage drive in progress round a block.
List the caller's recent jobs (quota-free).
Read one job (quota-free).
Submit a drive-every-street coverage plan to the asynchronous lane.
Submit an optimisation problem to the asynchronous lane.
Submit a mid-shift re-plan to the asynchronous lane.
Mint (or rotate) the calling key's webhook signing secret (quota-free).
Geocoding and search
Forward, reverse and batch geocoding, and search as you type.
Forward geocoding: places and addresses matching a text query.
Many geocodes in one call.
The full feature for one search suggestion, by its id.
Reverse geocoding: what is at, or nearest to, a point.
Never charged; capped per key per day.
Search-as-you-type suggestions, with coordinates.
Places
Your own places dataset with search and nearest, and what is in view from a position and heading.
Remove the caller's dataset and index. Idempotent: deleting an empty slate is still a 204.
The caller's stored dataset.
Replace the caller's place dataset and rebuild its search index.
The caller's places nearest to a point, by haversine distance (no text query, no index).
Full-text search over the caller's own places, proximity-biased when a focus point is given.
The places inside a cone from a position and heading, each with a visibility verdict.
Isochrones
Where you can reach within a time or distance budget, as polygons.
Elevation
Elevation at points and along a route.
Weather
Forecast weather along a route at each point's arrival time, and the forecast frames MapMap processes for drawing.
Fuel
Fuel stations along a route, cheapest first, with real detours.
EV charging
Charge points along a route, and whole EV journeys planned with their charge stops.
Transit
England bus positions, stops and timetabled departures, for display.
Events and live layers
Earthquakes, volcano alerts, fire detections, the aurora forecast and Kp, for display.
Clearance
Measured overhead clearance along a route, from survey geometry.
ADR
Dangerous-goods tunnel compliance for a load, without routing.
Verify
Checks whether places and itineraries an AI mentioned are real, findable and possible.
Boundaries, coordinates and time zones
Administrative boundaries, reprojection between reference systems, CRS checks for a dataset, and the time zone at a point.
The country and first sub-divisions at a point.
The reference systems this deployment will reproject between, with each one's stated error.
Reproject coordinates from one reference system to another.
Coordinate-reference-system sanity check.
Timezone-at-coordinate endpoint.
Administrative boundaries by name or by point, each with a stable boundary id.
One administrative boundary's simplified polygon, by its boundary id.
Keys and account
Self-serve keys, their verification, key state and usage, and OAuth for agent clients.
RFC 8414 authorization-server metadata.
Dynamic client registration (RFC 7591). Public clients only: the response carries no `client_secret`, and any `token_endpoint_auth_method` other than `"none"` is refused rather than silently downgraded.
The token endpoint: authorization-code and refresh-token grants.
One-call signup: issues a provisional key and emails a magic verification link.
Deletes the caller's account, per app: a verified key revokes every key of the identity behind it that carries the same label (each MapMap app labels its own key), and, when no other active key remains on the identity, deletes the account itself and erases its email, IP addresses and user agents. An unverified (`provisional`) key revokes only itself, and deletes the account only when it is the account's sole key: anyone who types an address can mint one, so it never speaks for the account. On the store-review identity any key deletes only itself, because that address is not a secret (security check M3). Idempotent: a retry with the same, now revoked, key answers 200 with `already_deleted`.
Key status for the calling agent (quota-free: polling it never consumes the free tier).
Sends a one-time code to an address for the calling email-less (`anonymous`) key. Nothing changes until the SAME key sends the code back to `POST /v1/keys/self/email/verify`; meanwhile `GET /v1/keys/self` shows the address as `pending_email`. Sending again (a corrected address, or a resend) replaces the pending address and voids the earlier code.
Proves the address: the calling email-less key sends back the code `POST /v1/keys/self/email` mailed. On success the address becomes this key's account's, and THIS key, and only this key, is lifted to `verified` on the free tier, which also unlocks offline downloads.
"Code in this tab" (Option B, Matt, 6 Nov 2026): the calling provisional key sends back the 6-digit code from its own verification mail. A right code confirms THIS key exactly as the link's button does (the same upgrade, the same five-key cap, the link voided afterwards). When this key is the address's only live key and the address has no account, session or money ([`identity::AccountShape::may_sign_in`], decided in the confirming transaction), it also mints a console session bound to this key, because the one request proves both the key (the caller holds it) and the mailbox (only its reader has the code): docs/ACCOUNT-CLAIM-DESIGN.md sections 3.2 and 6.5. An existing account, or another live key on the address: refused with `use-link` and nothing confirmed (such a key's mail has no code; the link's button confirms it), security review of #2123.
Sends the calling provisional key a fresh verification mail: a new 6-digit code (the previous code stops working at once) and a new link (earlier links keep working until the key is confirmed; each only confirms this key). At most one code a minute and [`identity::MAX_KEY_CODE_RESENDS_PER_KEY_PER_HOUR`] an hour per key, and every mail is spent from the same per-network and per-address verification-mail budgets as `POST /v1/keys`, so this is no new way to fill an inbox.
The emailed link's landing page. **Opening it changes nothing** (review of #1339, H1): mail security scanners and a single stray click open links, so a link that confirmed on GET could confirm a key a stranger asked for. The page shows the request (the app it said it came from, or that it named none, the time and the device class; no location is recorded) and confirms or refuses only on an explicit button, which POSTs to [`confirm_key`] or [`deny_key`].
Confirms the ONE key a link was mailed for, upgrading it to the verified free tier (or the plan already bought). Only an explicit press of the page's button reaches this (review of #1339, H1).
"This wasn't me": revokes the key a link was mailed for and spends the link. The owner of the address refuses a key somebody asked for against it (review of #1339, H1).
What the confirmation page shows: the request behind a link, without consuming it. A POST, so the token stays out of URLs and logs.
The calling key's own metered units, day by day and endpoint by endpoint (quota-free: reading it never spends units).
x402 payments
Prepaid credit bought with one x402 settlement.
Tiles, styles and map assets
Hosted vector tiles, styles, glyphs, sprites, vehicle avatars, static map images and point-cloud payloads.
One file of the vehicle-avatar asset set.
One SDF glyph range.
One hosted payload (`.bin`) or sidecar (`.json`).
A sprite-sheet file: `<sheet>.json`, `<sheet>.png`, `<sheet>@2x.json` or `<sheet>@2x.png` (the four names MapLibre resolves from a style's `sprite` base URL), for either sheet in [`SPRITE_STEMS`].
The CALLER'S hosted styles with their latest versions.
Create a style: validate and compile the theme, store it as version 1 under a freshly generated id.
Remove a style and every version of it.
A compiled MapLibre style.
Publish a new immutable version of an existing style (existing versions are never modified).
The latest theme document (the editable source a new version is published from; never cached).
`GET /tiles/{territory}/{z}/{x}/{y}.mvt` (also `.pbf`): one vector tile.
A ready-to-render MapLibre style.
A TileJSON 3.0 document.
Render a map view to an image.
The same render, with the GeoJSON overlay in the body because a real isochrone does not fit in a URL.
Offline territories
Signed territory indexes, manifests and layers for offline devices, and custom-region builds.
The signed channel index (`index.json`), byte exact so the detached signature verifies over the response body.
A content-addressed layer blob, streamed with a strong BLAKE3 ETag, single-range `Range` support and immutable cache headers.
A version's signed package manifest (`manifest.json`, exact signed bytes).
The manifest's detached base64 ed25519 signature.
Detached base64 ed25519 signature over the exact bytes of `/territories`.
Submit a custom-region cut to the asynchronous lane.
A custom region's own signed channel index (one territory, every version cut so far), exact bytes.
Detached base64 ed25519 signature (region key) over the exact bytes of the region's index.
Voice
Guidance voice clips, synthesised once and cached.
Feedback and map issues
Map error reports, integration retros, arrival feedback and the opt-in data probe.
File a map-error report, or a driver's traffic report (the `traffic-*` categories). Never edits map data: map-error reports are triaged by the team and verified fixes flow into the override file and upstream OSM.
Store one integration retro. Never charged; capped at [`RETROS_PER_KEY_PER_DAY`] per key per rolling 24 hours.
Records one answer to "Did that get you there?". Answers 204 with no body.
Probe ingest endpoint. Consent-gated, aggregate-only, metered as a free contribution.
Service metadata
What this deployment is and runs: health, status, provenance, terms, the OpenAPI document and app version checks.
Minimal service index.
Backend-aware health check: 200/`ok` when the primary routing backend answers, 503/`degraded` when it does not.
`llms.txt` (<https://llmstxt.org/>) describing the API for agent consumers, with runnable curl examples.
The generated OpenAPI 3.1 document, with the configured public URL as the server entry.
The read-only status surface: what this box is serving.
Terms of service: a 307 redirect to `SN_TERMS_URL` when the operator hosts the terms elsewhere (e.g. the website's `/terms` page), otherwise a plain-text pointer so the `tos` URL echoed by self-serve signup never dangles.
The minimum-version signal for one MapMap app. Keyless and unmetered.
The public provenance record: what this deployment runs.