Realistic recreation of Sydney Trains' PIDs using Transport for NSW APIs.
- Node.js 14.0.0 (or later)
- CORS Proxy (self-hosted or other)
- Run
git clone https://github.com/kurisubrooks/tfnsw-pids/to download the files - Run
cd tfnsw-pidsto enter the directory - Run
yarnornpm installto install dependencies - Edit
src/config.jsand add your proxy details
- Run
yarn startornpm start - Open http://localhost:3000/pids in a browser
Fill the values in src/config.js with the details of your CORS proxy.
Format: url?key=value&key=value
| Key | Default Value | Description |
|---|---|---|
stop |
200060 (Central Station) |
Specify the station/platform ID |
theme |
light |
Specify dark or light colour themes |
You can get the stop ID by searching for your station/light rail stop/bus stop/etc. from AnyTrip.
URL Example:
http://localhost:3000/pids?stop=200060&theme=dark
Made by @kurisubrooks
Special Thanks to Efren Palacios
Transport for NSW data sourced from https://anytrip.com.au, with permission.








