How a Bus Route Falls Apart (2025)

16 points by ciferkey


chad

I agree the post is probably off-topic, but if it inspires anyone to do some programmatic analysis of their local bus systems, here's a jumping off point!

GTFS (General Transit Feed Specification, originally Google Transit Feed Specification, built for google maps) is a file format which is basically just a zip file of CSVs to define the static schedule. When the busses run, where they stop, what route they take.

GTFS-realtime is a protobuf-based standard for the "realtime" data, i.e. locations of the busses, estimated arrivals at stops, detours, and service alerts. The data references foreign keys defined in the corresponding static GTFS file, so to make sense of it you'll need to download and parse both.

Agencies don't always make them public; larger ones sometimes have "developer portals" with links of them, but there's also community maintained datasets, for example:

https://www.transit.land/ https://mobilitydatabase.org/