<img src=“https://travis-ci.org/JPrevost/ctatracker.svg?branch=master” alt=“Build Status” /> <img src=“https://coveralls.io/repos/JPrevost/ctatracker/badge.png?branch=master” alt=“Coverage Status” /> <img src=“https://gemnasium.com/JPrevost/ctatracker.svg” alt=“Dependency Status” />
This is primarily a demo app that uses the freely available CTA Bustracker API to allow users to see bus arrival predictions for specific routes and stops. It uses data provided by the CTA, and thus is as accurate (or inaccurate) as the provided data.
This Ruby on Rails app requires you request your own CTA API key. For local development you add it to the /config/heroku_env.rb file as shown here:
ENV = ‘mysupersecretkey’
If you deploy to Heroku, you use the ENV varible as described here: devcenter.heroku.com/articles/config-vars
Ex. heroku config:add CTA_API_KEY=mysupersecretkey
You can see this code running on Heroku at: bustimes.herokuapp.com