Like most people, I’m of the opinion that the new Chicago Metra website is a bit underwhelming. Viewing the schedule from my iPhone is still tedious and painful, as they don’t expose a decent mobile view of the schedule. So like any geek would do, I tinkered… And I think it lead to good results.
As of a few days ago, the application I’ve been working on in my spare time for the past couple weeks has gone into release. It is a easy to use web application targeted at the iPhone mobile safari browser, for use by Chicago Metra train commuters. Pictures speak a thousand words, so check it out:
I think the picture speaks pretty clearly for itself. The application tries to solve one basic problem by answering one question, “What train can I get on next?”. There’s lots of other data that we could throw at the user, (Bike limits, a detailed list of all the stops, etc.) But this isn’t what people really need to see.
To get to this screen, initially you drill down into the following menu:
Then you select your starting and ending stops:
The cool thing is, once you select your stops for the first time, next time you open the application up it will remember the stops and take you straight to the schedule display. This assumes that MOST people usually go back and forth between just two stops, and shouldn’t have to input all this data everytime.
The heavy lifting is done by a data and object library I built for the schedule scraping and business logic. I’ve released the source for this, in hopes that others might find it useful and build something else cool around the metra data. I for one am annoyed at the fact that Metra doesn’t expose this data to begin with, so any help I can provide to a future developer to make an application is terrific.
You can find information and the source to the data library on my github here. You can also do a ‘gem install metra_schedule -s http://gemcutter.org’ if you want to start playing with the library immediately.
UPDATE: iPhone Metra will now track delays and service advisories that are posted by Metra so you can check on the status of your train.