A real-time map of Bay Area Rapid Transit trains.
Since BART doesn't publish GPS data, this is an estimate of where trains are in real time. It uses the GTFS-RT feed to calculate the average speed between stops. From there, the train moves along the actual path, defined by shapes.txt in the static GTFS.
This project is not official nor affiliated with BART.
Register for a BART API key or use the public one.
- For the first time you run the server, run
npm installto get dependencies. - Set the
API_KEYenvironment variable to your API key and theCERTandPRIV_KEYvariables to the paths of the respective certificate files. - Run
node server.js
- Run
npx live-server(requires live-server)
- GTFS static files
- GTFS-RT
- Train lengths
- The shape data used by the program is based on the shapes.txt GTFS file. Points for the stations have been added along each path. The QGIS project is in the gis directory.