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, AngularJS and PhoneGap.
- First, download the source code.
- Second, you'll need to get the MTA Bus Time Developer API key. Go here to request one. You will receive the key within half an hour. Then, rename the resources/js/config_tmpl.js to config.js. Insert your key to the BTKey field.
There are two methods to run and test the app,
- Use the serve function of ionic
- Use the PhoneGap Developer App. In order to build the native mobile app, use Adobe PhoneGap Build. Rename the config.tmpl.xml to config.xml. Archive the
www
folder and upload it on PhoneGap Build. You can also use PhoneGap Emulatation extension for Google Chrome. NOTE: The app uses several objects, like the connection object from the Apache Cordova framework, which may not be available locally (in a Web browser).
Run npm install
in the root of the project. To use JSHint, run gulp lint
. In order to use UglifyJS, run gulp compress
. It will create new compressed files in dist
folder in the root of the project. To compress the splashes, run compress_resources
.
The project is based on Apache License, version 2.0.