Last night I hit a milestone on a project that I’ve been working on and decided it’d be a good time to push it out to the web. Its located at What the Bus? and it uses the Google Maps API to show where the COTA buses are located in Columbus, OH.
COTA already has a map that’s sorta like this, but its buried somewhere beneath the rest of their site and is a real pain to get to when you’re on your cell phone at a bus stop and want to see where your bus might be at. After a little digging I was able to find the XML files that store the route paths and vehicle GPS coordinates, so I thought I’d try to hack up a new interface for it. It was also a good excuse to play around with the Maps API and polish my Javascript skills.
At any rate, I was able to jam the following features in that I think are all an improvement on COTA’s implementation:
- Optimized for viewing on mobile devices
- Better visual indicators of bus location and direction
- Automatically updates bus locations periodically
- Less clutter on bus info display (when a bus icon is clicked)
- Full-screen map
- No stupid pop-up error about API key being out of date
- Uses geolocation features to locate user and center map on area (apologies to anyone outside of the Columbus area, as that’ll be really annoying until I set up some kind of out-of-bounds limit on it)
Unfortunately, COTA doesn’t have a developer API or anything, so the project as a whole is a bit of a hack. I don’t follow the public transit scene, but I did find out that TriMet out in Portland, OR has a pretty nice API for this kinda thing. Maybe I’ll make a YQL table for COTA or create some functionality to have my project work as “stand-in” API. Not sure how many people other than myself would be interested in something so specific.