next_departures
Get the next departures for one stop on the TTC, Hamilton HSR or GO Transit, including UP Express stations. Static schedule candidates from the persistent schedule store are merged with GTFS Realtime trip updates (BusTime for the TTC, the City of Hamilton feed for HSR, the Metrolinx Open Data API for GO and UP Express), and realtime entries replace matching scheduled entries. Stop ids can collide between agencies: pass agency to say which agency the stop belongs to. Without agency, a stop id that exists in more than one agency returns an error naming every match instead of guessing.
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": {
"stop_id": "<stop_id>"
},
"name": "next_departures"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum departures to return | |
| agency | No | Optional agency the stop belongs to: ttc, hsr or go. Required when the stop id exists in more than one agency. | |
| stop_id | Yes | A stop_id from search_stops. A parent station includes its child stops. |