Skip to content

denishaskin/onebusaway-nyc-atstop

 
 

Repository files navigation

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, AngularJS and PhoneGap.

Setting up the project

  • 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.

Running and testing

There are two methods to run and test the app,

  1. Use the serve function of ionic
  2. 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).

Using JSHint, UglifyJS, and Pngquant-Imagemin###

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.

Project License

The project is based on Apache License, version 2.0.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 77.5%
  • CSS 20.7%
  • HTML 0.7%
  • Objective-C 0.4%
  • Java 0.3%
  • C++ 0.2%
  • C# 0.2%