Skip to content
Merge GTFS datasets
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
src
test
.gitignore
.npmignore
.travis.yml
README.md
logo.png
package-lock.json
package.json
tsconfig.json
tslint.json

README.md

gtfsmerge

Travis npm David

gtfsmerge merges multiple GTFS zip files into a single zip, adding transfers between geographically close stops.

Installation

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

Usage

It can be run by specifying the input and output files as CLI arguments:

gtfsmerge input1.zip input2.zip output.zip

Notes

  • 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.

Contributing

Issues and PRs are very welcome. To get the project set up run

git clone git@github.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.

License

This software is licensed under GNU GPLv3.

You can’t perform that action at this time.