mirror of
https://github.com/cjdenio/uta-trax-api.git
synced 2026-12-01 00:26:25 +00:00
16 lines
800 B
Markdown
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 )
|
|
- `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)
|
|
|
|

|