Client for the Comboios de Porgual (CP, Portugese Railways) REST API. Inofficial, please ask CP for permission before using this module in production.
npm install --save comboios
This package mostly returns data in the Friendly Public Transport Format:
stations()- List of operated stations
departures(station, date = new Date())- Departures at a given station
trains(trainNumber, date = new Date())- Schedule for a given train
journeys(origin, destination, date = new Date())- Journeys between stations
- build-cp-gtfs - Generate CP GTFS using this module
If you found a bug, want to propose a feature or feel the urge to complain about your life, feel free to visit the issues page.