gtfsmerge merges multiple GTFS zip files into a single zip, adding transfers between geographically close stops.
Please note that zip/unzip and node 10.x or above are required.
gtfsmerge is a CLI tool that can be installed via NPM:
sudo apt-get install nodejs zip npm install -g gtfsmerge
It can be run by specifying the input and output files as CLI arguments:
gtfsmerge input1.zip input2.zip output.zip
- Duplicate stops, agencies and routes are assumed to be the same stop and only output once.
- Calendars, calendar dates, trips and stop times are re-indexed.
- Identical calendars are merged into a single entry.
- This tool does not currently process any of the fares files. Please raise an issue if you would like this feature.
Issues and PRs are very welcome. To get the project set up run
git clone email@example.com:planarnetwork/gtfsmerge npm install --dev npm test
If you would like to send a pull request please write your contribution in TypeScript and if possible, add a test.
This software is licensed under GNU GPLv3.