A simple next departure/arrival display for Blair Station.
A .env.local
file must be created with the following variables included from the OC Transpo API:
REACT_APP_APP_ID=<app id>
REACT_APP_API_KEY=<api key>
Run yarn
to install all required dependencies.
Run yarn start
from the command line, and then navigate to http://localhost:3000
in your browser.
The direction of travel (departure/arrival) can be controlled using the direction
query parameter.
http://localhost:3000?direction=departure
for departure times.
http://localhost:3000?direction=arrival
for arrival times.