Find trains headed to your destination.
- clone the repo with
[email protected]:aschwtzr/nj-transit-app.git
. - set up the environment by running
pipenv install
(if you don't have pipenv installed see here.). - run the script with
sh run_api.sh
.
- the API will be running at
localhost:5000
. /stations
returns a list of stations and information about them, including thestop_id
./routes
takes two parameters: origing and destination. Enter your desiredstop_id
s to see the potential trains and times.- To update the transit data, head to the NJ Transit developer portal, download rail data and replace the contents of the directory
./rail_data
.