4 ms·
Heh, I saw this on Twitter and responded to the author earlier-I'm working on a data mining project now with public transit times, comparing arrivals vs schedul
by ZanyProgrammer 12y ago
Heh, I saw this on Twitter and responded to the author earlier-I'm working on a data mining project now with public transit times, comparing arrivals vs scheduled times. Since I live in the Bay Area, it made sense to use local data. However, 511.org, the repository (it seems) for all Bay Area transit APIs, doesn't publish any specific vehicle/route number, or what the actual scheduled time is for an arrival at a stop (though MUNI used to have a nextbus API that was really nicely detailed-I can't find any public hosting of it anymore though).
My solution, since I didn't want to do any screen scraping or make trying to identify individual busses/trains a project in and of itself, was to use Portland's TriMet API. That API acutally return specific route numbers, and estimated and scheduled times for each stop (interpolated in the case of non time points). I'm originally from the Portland Area, so I'm pretty familiar with the geography and roads.
From what I remember in the 511.org Google developer group, people have raised this exact issue, i.e. Caltrain train numbers. The guy responding from the MTA said they'd try and integrate it in the future, but these posts were like back in 2012 (IIRC).
- simoncion 12y agoIf you're still interested in doing Muni data mining, you'll probably be interested in this: http://www.nextbus.com/xmlFeedDocs/NextBusXMLFeed.pdf http://www.nextbus.com/xmlFeedDocs/NextBusXMLFeed.pdf NextBus is the source of bus position and predicted arrival times for MUNI, and appears to be the same for many other transit agencies. I can verify that (as of three minutes ago) it's still returning reasonable data. However, if you're looking for the SFMTA schedule [0], I don't think you can get it through the NextBus API. I do know that you can get it through a GTFS "feed" found here: http://sfmta.com/about-sfmta/reports/gtfs-transit-data http://sfmta.com/about-sfmta/reports/gtfs-transit-data Also, you might be interested in this, if you haven't seen it already: http://bdon.org/transit/ http://bdon.org/transit/ (SF MUNI transit delays. [This isn't my work.]) [0] Why would you want MUNI's schedule? It's not like any of the drivers care about it! ;)