- download / install Java 1.7
- download the latest static data from COTA http://www.cota.com/COTA/media/COTAContent/OpenGTFSData.zip to cota-realtime/OneBusAway
- download onebusaway-quickstart-assembly-1.1.13-api-webapp.war to cota-realtime/OneBusAway folder
$ cd cota-realtime/OneBusAway
- build/rebuild the TransitBundle (this must always be up to date before running the java api server):
$ java -Xmx1G -server -jar onebusaway-quickstart-assembly.war -build OpenGTFSData.zip TransitBundle
- run the java api server:
$ java -jar onebusaway-quickstart-assembly-1.1.13-api-webapp.war -webapp -gtfsRealtimeAlertsUrl=http://realtime.cota.com/TMGTFSRealTimeWebService/Vehicle/VehiclePositions.pb -gtfsRealtimeTripUpdatesUrl=http://realtime.cota.com/TMGTFSRealTimeWebService/TripUpdate/TripUpdates.pb TransitBundle
(these realtime feeds from here) - see http://developer.onebusaway.org/modules/onebusaway-application-modules/current/api/where/index.html for more details on OneBusAway API
- download / install node.js
$ cd cota-realtime
$ npm install
$ npm start
- navigate in web browser to http://localhost:3000/
cota-realtime
lets you see all the currently active COTA vehicles and select which vehicle you want to recieve realtime updates on. View the web console for more details.