Get STPT vehicle positions
get_vehiclesRetrieve current STPT vehicle positions with timestamps and staleness flags, optionally filtered by line, to track transit vehicles and assess data freshness.
Instructions
Get current STPT vehicle positions, optionally filtered by line. Each vehicle includes its upstream observation timestamp and staleness flag.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | No | Optional line filter. | |
| limit | No | Maximum number of vehicles. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| error | No | Structured failure, if any. | |
| status | Yes | Overall result status. | |
| vehicles | No | ||
| provenance | No | Source and freshness metadata. | |
| line_filter | No |