Get Real-Time Arrivals
onebusaway_get_arrivalsReal-time arrivals and departures at a stop. Returns predicted arrival times, schedule deviation (how many seconds late/early), vehicle positions, and any active service alerts. The predicted boolean on each arrival indicates whether GPS tracking backs the estimate — predicted=false means schedule-only. Use tripId from results for follow-up onebusaway_get_trip calls. Stop IDs use agency-prefixed format: {agencyId}_{localId} (e.g. "1_75403").
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"stopId": "<stopId>"
},
"name": "onebusaway_get_arrivals"
}
}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 |
|---|---|---|---|
| count | No | Number of arrivals in the time window. | |
| error | No | Present when the call failed. Absent on success. | |
| notice | No | Guidance when no arrivals were found — widen minutesAfter, or check onebusaway_get_schedule_for_stop for scheduled service. | |
| stopId | No | The queried stop ID. | |
| arrivals | No | Arrivals and departures at this stop within the requested time window. | |
| stopName | No | Stop name. | |
| timezone | No | Validated timezone of the queried stop agency, or UTC when unavailable or invalid. | |
| situations | No | Active service alerts at this stop — those attached to the stop itself and those referenced by its arrivals, each listed once. | |
| 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. |