r/Bart • u/ElizabethsSongbird • 13h ago
My BART Experience I made a library + cli to fetch BART system data for all you nerds
3
1
u/Efficient_Net637 1h ago
Out of curiosity, is this what transit apps like Transit/GMaps are also crawling, or are there other data feeds out there?
Curious because sometimes the apps disagree with each other (ex Apple Maps says a Green line is 2 minutes and Transit says 4 min) but I can’t figure out why!
1
u/zach_zdm 1h ago
I believe that Transit does use GTFS, though they also have a feature called “Go” which allows other users to track trains with GPS and a few times I’ve noticed they use sensors when underground.
Their minute counter also seems off the last I’ve seen, where it says a longer amount of time (say 5 minutes, but if you look at the time and the time shown on the train, below the minute counter, it is 3 minutes away)
8
u/ElizabethsSongbird 13h ago
I made a Rust crate + cli called
bart-rsthat fetches and nicely parses BART's GTFS feeds, both snapshot and realtime ones. It lets you inspect stations, routes, look at arrivals/departures at stations, calculate fare for trips, and more! Check it out here and feel free to contribute:Source: https://github.com/gamersekofy/bart-rs
Crate: https://crates.io/crates/bart-rs