BART NextUP API powering PebbleNextUpHack app
NextUp - Is a Pebble app that helps you to find transit information for stations near you.
Created for YC Hacks 2014:
To get station information:
http://nextup-bart-hack.herokuapp.com/station/{station_code}
To get stations near GPS coordinates:
http://nextup-bart-hack.herokuapp.com/stations?lat={latitude}&lng={longitude}
Live URL examples:
- http://nextup-bart-hack.herokuapp.com/station/cols
- http://nextup-bart-hack.herokuapp.com/stations?lat=37.699&lng=-122.29
To run locally:
git clone https://github.com/vbvyas/bart-api.git
cd bart-api
npm install
node app.js
