stl_gtfs_departures
Retrieve scheduled departures for a stop within a time window, correctly attributing overnight trips to their service date. Schedule only, no realtime.
Instructions
Scheduled departures at a stop for a time window. Schedule only, no realtime.
Correctly attributes departures encoded past 24:00:00 to the previous service date, and resolves service_ids through both calendar.txt and calendar_dates.txt. Each result carries its service_date and raw gtfs_time alongside the resolved local time, so a wrong service-date attribution is visible rather than hidden.
Args: stop: stop_code (number on the sign) or stop_id. at: ISO-8601 instant. Naive values are read as America/Chicago local time. Defaults to now. window_minutes: how far ahead to look. route: optional route_id or route_short_name filter.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | ||
| stop | Yes | ||
| limit | No | ||
| route | No | ||
| snapshot | No | ||
| window_minutes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |