Skip to content
Documentation menu
docs / api / get-v1-transit-stops
Transit

GET/v1/transit/stops

Access and price

AuthAn API key, as Authorization: Bearer snk_… or ?api_key=snk_…. Metered. A browser (maps) key may call it.
Price1 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

NameInTypeRequiredDescription
latquerynumberyesRequired. Latitude, WGS84 degrees
lonquerynumberyesRequired. Longitude, WGS84 degrees
radius_mqueryintegernoSearch radius in metres, 1 to 2000 (default 500) Limits: at least 0.
limitqueryintegernoMost 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
FieldTypeRequiredDescription
attributionstringyesNaPTAN and BODS attribution (both OGL v3.0), to be shown with the data.
coveragestringyesWhat this covers and what it does not.
stopsTransitStop[]yesNearest 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"
    }
  ]
}
400lat or lon missing or out of range, or a malformed radius_m or limit. Not billed

application/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 key

application/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+json

application/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 billed

application/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