- This is a transit program that shows you how long it takes for a specific vehicle to reach a stop
- Returns a Stop Instance that contains the id of stop, id of agency, and the list of predictions to that particular stop.
- create a .env file otherwise it won't work.
- Request an API Key from 511.org, then enter it into your .env file
- https://511.org/open-data/token
- Sample:
- agency id = SC (vta)
- stop code = 60439
- optional parameter: POLL_INTERVAL=15 (updates every 15 sec)
- Make sure that your .env file has all required contents.
- In your terminal, run this:
docker-compose -f docker-compose.dev.yml up --build- To close:
docker compose -f docker-compose.dev.yml down
Open http://localhost:8000 to view the live arrival board. The JSON data used by
the page is available at http://localhost:8000/api/transit.
