Bay Area Rapid Transit (BART) provides the San Francisco and Bay Area, CA region with one of the most innovative public transportation services in the United States. Now BART offers developers the BART API. The BART API provides real-time estimated time of arrival (ETA) feeds, transit schedules, advisory feeds, and trip planning information. Our new BART API profile has details and joins a growing list of transit-related APIs including government-sponsored web services Portland's Trimet API as well as commercial services like the Hopstop API and Urban Mapping's Mass Transit Proximity API which we covered earlier this month.
BART's API has an active dataset with the BART ETA feed being updated every 60 seconds. Each data record includes the station name, station abbreviation, date and time, and numerous ETA elements. Each ETA element has a destination and can show up to the next three trains that will arrive at the station.
The BART API is REST-based with data returned in the form of XML RSS feeds. The API is open with no fees or usage limitations for developers. Their API documentation includes a page for each of the primary API feeds. The documentation for each feed includes an overview and a representative example of the XML feed. For example, the Real Time ETA Feed documentation provides the station abbreviations and an example ETA feed.
The BART team also provides an Embedded QuickPlanner for web sites that routinely provide directions to customers and visitors. The QuickPlanner lets people enter a starting location, destination, and time, and returns the schedule of upcoming transportation choices for the trip, the cost, a map, and more.
With 5 APIs tagged "transit" in our directory and another one coming soon, this is a category that we expect to grow and provides developers useful data for a range of applications.