Get Stop Context
onebusaway_get_stop_contextEverything happening at a stop in one call: the stop's details, its real-time arrivals, and full detail for every service alert on the stop or on any arrival in the window. Returns what onebusaway_get_stop, onebusaway_get_arrivals, and one onebusaway_get_alert call per alert would, from a single upstream request — arrivals in the onebusaway_get_arrivals shape, alerts in the onebusaway_get_alert shape. The stop omits its served-route list; use onebusaway_get_stop for routeIds. Stop IDs use agency-prefixed format: {agencyId}_{localId} (e.g. "1_75403").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stopId | Yes | Agency-prefixed stop ID (e.g. "1_75403" for Metro Transit stop 75403). Use onebusaway_find_stops or onebusaway_search_stops to discover IDs. | |
| minutesAfter | No | Include arrivals expected within the next N minutes — an integer from 0 to 240. Defaults to 35. For a longer horizon, use onebusaway_get_schedule_for_stop. | |
| minutesBefore | No | Include arrivals that departed up to this many minutes ago — an integer from 0 to 60. Defaults to 5. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stop | No | The queried stop, without its served-route list (use onebusaway_get_stop for routeIds). Null when the upstream response omitted the stop. | |
| error | No | Present when the call failed. Absent on success. | |
| alerts | No | Service alerts on this stop or on any arrival in the window, each listed once — including alerts whose affected arrivals fall outside the window. | |
| notice | No | What the response is missing and where to get it — no arrivals in the window, stop details absent, or referenced alerts absent. | |
| arrivals | No | Arrivals and departures at this stop within the requested time window. | |
| currentTime | No | Server time as Unix milliseconds, for computing countdown timers. | |
| queriedStop | No | Stop ID queried. | |
| windowMinutes | No | Time window used for the arrivals query. |