transit

`GET /v1/transit/vehicles?bbox=<west>,<south>,<east>,<north>`.

get/v1/transit/vehicles

Request

  • Base URL: https://api.mapmap.ai
  • URL: https://api.mapmap.ai/v1/transit/vehicles
  • Auth: one of:
    • HTTP bearer
    • API key in query parameter api_key

Query parameters

bboxstring required

Required. west,south,east,north in WGS84 degrees, covering at most 4 square degrees (for example 2 by 2 degrees). A box across the antimeridian is not supported

operatorstring

Only this operator's vehicles: a National Operator Code such as TFLO (case-insensitive)

linestring

Only vehicles on this line, as riders see it, e.g. 88 (case-insensitive)

limitinteger

Most features to return, 1 to 5000 (default 2000). Past it truncated is true and the features are spread evenly across the matches

Response

GeoJSON FeatureCollection of live bus positions inside the box, with feed (freshness: ok, stale past 180 s, or unknown), coverage and the OGL v3.0 attribution. A stale feed still returns its features: staleness is a field, never an error. Display only: no arrival, journey-time or delay prediction

Changes

No recorded changes to this operation across all 1 revision of this API.