Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 1.6 KB

README.md

File metadata and controls

32 lines (26 loc) · 1.6 KB

Build Status

OneBusAway Chrome extension (Angular 2)

This is a handy little extension that lets you monitor bus stops near you for arrival times of upcoming buses.

Demo

Adding nearby stops

Important notes

  • Only the Puget Sound region is tested at the moment.

OneBusAway

  • This app is powered by the OneBusAway API.
  • This app is not officially provided by OneBusAway.

How to run the extension

  1. Make sure your local transit agency uses OneBusAway. This might be mentioned on their website. For eg. here's Sound Transit's open transit data website.
  2. Update src/environments/environment.prod.ts with the OneBusAway API key in the obaApiKey variable.
    1. The KEY can be obtained by emailing your local transit agency. For Sound Transit, send an email to [email protected].
  3. Compile the app using npm run-script build.
  4. The dist folder contains the extension code. You can load this in chrome as an unpacked extension by following the instructions here.

How to run unit tests

  1. Run npm run-script test to keep tests running continously.
  2. Run npm run-script testonce to run tests only once.