New Code Sample & Map App: Washington Real-time Transit

00_logoReal-time bus schedules takes the uncertainty out of riding the bus. Sometimes a bus arrives early and you have to choose whether to chase after it or wait for the next one. Other times the bus arrives late and you have to wait at the bus stop, looking down the road wondering when the bus will appear. If the weather is bad or you’re alone at the bus stop in the dark, you need to know exactly when your bus is coming – at the very least for peace of mind.

The Washington real-time transit map app brings real-time bus schedules (provided by OneBusAway) to Bing Maps for the Puget Sound / Seattle area. The map app was developed by Luan Nguyen, who wrote an article for MSDN in October on how to add real-time transit data to a map app. His article goes into how to access the OneBusAway API, defining the map entity, writing the main plug-in, and displaying the content. He also goes in-depth into the code, which is now freely available.

When you first open the map app, you’re shown the transit agencies with available data. I recommend using the Bing search bar or map control to zoom in to your location rather as the “go to this area” links keep you at a fairly high level.

Bing Maps real time transit map app

Leave a Reply