Files
uta-trax-api/README.md
T
2026-11-22 19:42:43 -07:00

16 lines
800 B
Markdown

# UTA tracker
Tracking all the trains & buses in Salt Lake City.
## API
- `GET https://uta.clb.li/api.json`: List all vehicles currently in service (JSON)
- `GET https://uta.clb.li/api`: Same as above, but Protobuf (see ![proto/schema.proto](./proto/schema.proto))
- `GET https://uta.clb.li/api/shapes/{shape_id}`: Get the geographic route "shape" for a given vehicle's `shape_id`
- `GET https://uta.clb.li/api/upcoming-departures?stationIds=...`: Show upcoming scheduled departures for a given station (or stations)
- `?stationIds=` comma-separated list of GTFS stop IDs
- `?from=` UNIX timestamp, show upcoming departures as of this time (defaults to current time)
- `?to=` number of seconds in the future to show departures (defaults to 3600, 1 hour)
![screenshot](screenshot.png)