Get STPT arrivals
get_arrivalsRetrieve upcoming arrivals at an STPT stop using verified live data or a GTFS timetable fallback, with provenance and live flags to show data freshness.
Instructions
Get upcoming arrivals at an STPT stop. Live data is used only when its freshness is verified; otherwise departures come from the bundled GTFS timetable. Check provenance.freshness, provenance.fallback_reason, and each arrival's live flag.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | No | Optional line filter such as '2', 'E3', or 'M32'. | |
| limit | No | Maximum number of arrivals to return. | |
| stop_id | Yes | Numeric STPT stop ID. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| error | No | Structured failure, if any. | |
| status | Yes | Overall result status. | |
| stop_id | Yes | ||
| arrivals | No | ||
| stop_name | Yes | ||
| provenance | No | Source and freshness metadata. | |
| line_filter | No | ||
| lookahead_minutes | No |