transit

`GET /v1/transit/departures?stop=<ATCO>[&at=][&window_minutes=60][&limit=8]`.

get/v1/transit/departures

Request

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

Query parameters

stopstring required

Required. The stop's NaPTAN ATCO code, as /v1/transit/stops returns it

atstring

Start of the window, RFC 3339 (default now). Must fall inside the three service days the index holds

window_minutesinteger

Window length, 1 to 180 minutes (default 60)

limitinteger

Most departures to return, 1 to 30 (default 8)

Response

Timetabled departures from BODS timetables, in order, each with its line, destination, operator, scheduled_at and a live vehicle on that line seen heading towards the stop (or null). basis is always timetable and label says what a live entry is: an observation, never an arrival prediction

attributionstring required

NaPTAN and BODS attribution (both OGL v3.0).

basisstring required

Always timetable.

coveragestring required

What this covers and what it does not.

generated_atstring required

When this answer was assembled (RFC 3339).

labelstring required

The honesty line, verbatim. Show it with the departures.

timetable_datestring required

The service date the requested time falls on, YYYY-MM-DD.

Changes

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