next_departures
Get the next departures for one stop on the TTC or Hamilton HSR. 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), and realtime entries replace matching scheduled entries. TTC and HSR stop ids can collide: pass agency to say which agency the stop belongs to. Without agency, a stop id that exists in both agencies returns an error naming both matches instead of guessing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum departures to return | |
| agency | No | Optional agency the stop belongs to: ttc or hsr. Required when the stop id exists in both agencies. | |
| stop_id | Yes | A stop_id from search_stops. A parent station includes its child stops. |