NextMuni API

Paul Hammond, 8 November 2009

I spent a chunk of today catching up with the state of public data for the San Francisco Muni.

Minimuni has been broken for a few months now. At some point NextBus changed their website slightly and it broke the screenscraper. Mike told me he had some updated code that worked, but he never sent it to me and I never got round to asking for it.

Today I noticed (via lhl) that NextMuni has an API, so I spent an hour or two exploring it. It's really good.

It has all of the data I was scraping from the website and then some, including current locations of trains, the lat/long of every stop on the network, detailed description of routes, and most importantly expected arrival times. Most of the time spent making Minimuni was getting the scraper working, so I can see how easy access to data will encourage more transit based apps.

So Minimuni works again (with the updated source on github) and if you're interested in getting data about SF Muni you should go look at the SF Muni API.