Busted – A Tucson SunTran WebWatch Feed Proxy Service
It’s been a bit…been too busy. Changes coming. Anywho…
Back in December, we kicked off the Open Tucson working group with the aspiration to push Tucson into the “open” limelight with many other forward-leaning municipalities. The city has some cool initiatives, services like SeeClickFix, that are making there way into public use.
SunTran, the city’s mass transit service, has made its bus service information, available in a close-to-realtime view via Google Maps or Microsoft Virtual Earth maps. Even the data is being distributed in map form it would be really cool if SunTran made the raw information available for the opportunity of mobile apps, mashups or any innovative use.
A few of us from the Open Tucson group met with SunTran last week to discuss. While they are willing to help, they are somewhat handcuffed by the system that homes all the data behind the maps. Ian Johnson, from the Moia Group, and I poked around the client-side SunTran WebWatch code a bit and found the data feed that the maps consume. It’s ugly, really ugly – take a peek here.
So, I built a simple Sinatra app to home a proxy service, to repackage the data into a more usable format. I’ve put the service up under the Heroku IaaS/PaaS, hey it’s free. In order to test, and more importantly capture analytics for, the proxy feed I’ve put the proxy behind Apigee. Apigee is a API proxy, that provides Google Analytics-like information about usage. Cool stuff.
Here’s the service’s site: http://busted.kitplummer.apigee.com
There’s some basic instructions there, but I think it is easy to see that http://busted.kitplummer.apigee.com/alpha/route/2 is a bit more developer friendly than the SunTran feed.
Please comment: blog comments powered by Disqus