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

New Bing Tile Layer Type in OpenLayers

So this was some really great news for those of us using OpenLayers; Bing Tiles for OpenLayers:

As of today, OpenLayers has a new layer type: OpenLayers.Layer.Bing. “Why that” you may ask, “there is OpenLayers.Layer.VirtualEarth already”. So why is this new layer type so special? It is the first time that we access tiles from a commercial service directly. Others (e.g. Google Maps) do not provide direct access to their tiles, but Microsoft does through the Bing Maps Web Services.

Yea direct tile access is pretty awesome.  Bing Bang!

Quick look at Trendsmap – cool mashup using Twitter Location APIs and Google Maps

Quick look at Trendsmap – cool mashup using Twitter Location APIs and Google Maps. Containing post is here – bit.ly I’ve also posted a lot about related topics (eg bit.ly This is a great demonstration of the power of Twitter in a hyper-local context and makes me even more excited about what we could do to extend.