next_departures
Timetabled bus departures at one stop, from the Bus Open Data (BODS) timetables. Pass stop (the NaPTAN ATCO code nearby_stops returns), optional at (RFC 3339, default now; the index holds three service days from today), window_minutes (1 to 180, default 60) and limit (1 to 30, default 8). Each departure carries line, destination, operator, scheduled_at (local time) and trip, plus live when a vehicle on that line was seen in the live positions within 3 km and heading towards the stop (vehicle, distance_m, age_s). These are TIMETABLE times: basis is always "timetable", and a live entry is an observation, never an arrival time or a delay. MapMap does not predict arrivals: never present scheduled_at or live as one, and pass on the returned label and coverage verbatim. Requires the MapMap gateway; a deployment without the departures index answers a clear error. Display the returned attribution (NaPTAN and BODS, Open Government Licence v3.0).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | Start of the window, RFC 3339 (e.g. "2026-10-12T08:00:00+01:00"); default now. The index holds three service days from today. | |
| stop | Yes | The stop's NaPTAN ATCO code, as `nearby_stops` returns it. | |
| limit | No | Most departures to return, 1 to 30 (default 8). | |
| window_minutes | No | Window length, 1 to 180 minutes (default 60). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stop | Yes | The stop. | |
| basis | Yes | Always "timetable". | |
| label | Yes | The honesty line, verbatim: timetable times, what a live entry is, and that MapMap does not predict arrival times. Pass it on with the departures. | |
| coverage | Yes | What the data covers. Pass it on with the departures. | |
| departures | Yes | Departures in timetable order. | |
| attribution | Yes | NaPTAN and BODS attribution (Open Government Licence v3.0). | |
| generated_at | No | When the answer was assembled, RFC 3339. | |
| timetable_date | No | The service date the requested time falls on, YYYY-MM-DD. |