Please note that the data basis used by the MÁV API allows GTFS data to be generated only 25 days in advance.
Work in progress. This software is not stable yet. See the to-do section.
npm install --save build-mav-gtfs
npm install -g build-mav-gtfs
The script takes a
startDate and an
Date() object (the feed will include the
endDate, days will be calculated in
Europe/Lisbon timezone) and return a
Promise that will resolve in an object containing GTFS object streams:
const generateGTFS =
The GTFS object contains the following streams:
build-mav-gtfs start-date end-date directorybuild-mav-gtfs 01.12.2017 31.05.2018 ~/cp-gtfs
- minify/optimize gtfs
@juliuste will be working on this the next few days.
- build-cp-gtfs - Build GTFS from the Comboios de Portugal (CP, Portugese Railways) REST API
- db-api-to-gtfs - Build GTFS from the Deutsche Bahn (DB, German Railways) REST API
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.