Skip to content

StareIntoTheBeard/simplectabus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple CTA Bus Tracker

This is a simple bus tracker you can add bus routes and stop ids through the GUI. Stop IDs are gleaned from the getStops api at the moment. Javascript refreshes bus times through ajax call once a minute. Run ‘rake db:seed` to create a blank API Key setting and you’ll need your own Bus Tracker API Key to use this which you set at ‘/settings’. If you wanna modify this to do something sexier like use better environment variables or yaml, be my guest.

That’s about it.

www.transitchicago.com/assets/1/developer_center/BusTime_Developer_API_Guide.pdf for more info.

Changelog

v1.2.4 - More error handling.

v1.2.3 - Fixed a case where no bus times were available for a stop and ajax broke.

v1.2.2 - Various code improvements.

v1.2.1 - Added some error handling when times couldn’t get retrieved.

v1.2 - Fixed a bug where times retrieved at wasn’t updating when ajax call occurred.

v1.1 - Bustimes update with ajax call now. Each route has an easy edit button at the top of each list of times.

v1.0 - It works. Can add an api key and add/remove routes through in app settings.