Documentation menu
Transit
GET/v1/transit/stops
Access and price
| Auth | An API key, as Authorization: Bearer snk_… or ?api_key=snk_…. Metered. A browser (maps) key may call it. |
|---|---|
| Price | 1 call per request. Class: standard. Published as unit_rules.default in /pricing.json. |
What it does
GET /v1/transit/stops?lat=&lon=&radius_m=500&limit=10.
Call it
bash
curl -fsS -X GET "https://api.mapmap.ai/v1/transit/stops?lat=…&lon=…" \
-H "Authorization: Bearer $MAPMAP_KEY"Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| lat | query | number | yes | Required. Latitude, WGS84 degrees |
| lon | query | number | yes | Required. Longitude, WGS84 degrees |
| radius_m | query | integer | no | Search radius in metres, 1 to 2000 (default 500) Limits: at least 0. |
| limit | query | integer | no | Most stops to return, 1 to 50 (default 10), nearest first Limits: at least 0. |
Responses
200England bus and coach stops (NaPTAN) near the point, nearest first, each with its ATCO code, distance, bearing from the point and the lines the BODS timetable has calling there;
coverage and the OGL v3.0 attribution on every answer. Bus only: rail, tram and ferry are not included| Field | Type | Required | Description |
|---|---|---|---|
| attribution | string | yes | NaPTAN and BODS attribution (both OGL v3.0), to be shown with the data. |
| coverage | string | yes | What this covers and what it does not. |
| stops | TransitStop[] | yes | Nearest first. |
Example: A response assembled from this schema's own field examples, enums, defaults and types; not a recorded call
json
{
"attribution": "string",
"coverage": "string",
"stops": [
{
"id": "string",
"lat": 0,
"lines": [
"string"
],
"lon": 0,
"name": "string"
}
]
}400
lat or lon missing or out of range, or a malformed radius_m or limit. Not billedapplication/problem+json · Problem
401Missing or invalid API key. Also: No key, or a missing, malformed, unknown, revoked or expired one (
unauthorized); the body carries signup, docs and a one-call hint for a free keyapplication/problem+json · Problem
402Beyond the included volume with no way to pay this call: an x402 body naming how to pay (provisional key past its allowance, prepaid balance below the price, or a rejected
X-PAYMENT). Not problem+jsonapplication/json · X402PaymentRequired
403The key may not call this: a browser key outside its scope (
scope-insufficient), a request from an origin the key does not allow (origin-not-allowed), or an account restriction (forbidden)application/problem+json · Problem
429Quota or rate limit exceeded. Also: Per-key rate limit (
rate-limited, with Retry-After), or monthly quota exhausted with no payment path (quota-exceeded)application/problem+json · Problem
501Transit stops not enabled (
SN_TRANSIT_DIR unset, or no departures index built yet). Not billedapplication/problem+json · Problem
504The request did not finish within the gateway's request deadline (
request-timeout)application/problem+json · Problem
Error bodies follow the shared problem model documented on API conventions.
Also under Transit
Generated from https://api.mapmap.ai/openapi.json on 2026-11-12 · operationId get_transit_stops