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

“Destination Maps” for Your Holiday / New Year’s Parties

Over the next few weeks, there will be many holiday and New Year’s parties across the globe as we spend time with our families and welcome in 2011. I wanted to briefly re-visit a previously released Map App that is very timely for this time of the year – “Destination Maps”. When planning your party, this Map App lets you create custom mini-maps that you can save, print, or share via URL.

These maps can either help people who don’t know your location very well or just be a fun addition to a party invitation. And if you’re not having a party anytime soon, check it out anyways! You can choose from 4 different map styles, including the Treasure Map style as seen in the below example. Please note that the app takes between 2 and 4 minutes to generate the map.

Destination Maps Example

On behalf of everyone at Bing Maps, have a happy holiday and a great final few weeks in 2010. Enjoy!