/onebusaway-nyc-atstop

Primary LanguageJavaScriptOtherNOASSERTION

At Stop

A hybrid mobile app that provides information about when the next bus will arrive at your stop. The app uses free MTA Bus Time Developer API's to get the real-time location of the buses serving a particular stop. The app is built on top of Ionic Framework.

Setting up the project

  • (Wait before cloning this repo)
  • First, install Ionic Framework.
  • Second, start a new project using ionic start atstop blank.
  • Then, in the project root (cd atstop):
    • Setup SASS running ionic setup sass.
    • Install ngCordova running bower install ngCordova.
    • git init
    • git remote add origin PATH/TO/THIS/REPO
    • git fetch --all
    • git reset --hard origin/master
    • rm www/img/ionic.png www/css/style.css files.
    • mv www/js/config.tmpl.js www/js/config.js
    • run gulp sass to generate CSS
    • Get a MTA Bus Time Developer API key. Go here to request one. You will receive the key within half an hour.
    • Insert your key into the API_KEY field of config.js.
    • Set the API end point via the API_END_POINT constant in the same file (e.g. http://bustime.mta.info/)

Required Cordova Plugins for Building

In order to build app packages and install, several Cordova plugins are required. Using cordova plugin add [name], install the following plugins:

Running and testing

  • Use the ionic serve function of Ionic Framework
  • In order to build the native mobile app, use ionic build [platform]

Project License

The project uses the Apache License, version 2.0.