/gtfsmerge

Script to merge GTFS ZIP archives into one.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

GTFSmerge

Script to merge GTFS ZIP archives into one.

Features

  • Uses the first archive contents as a reference.
  • Supports wildcards in input argumets.
  • Skips files from other archives with a different header.
  • Adds the CSV header row once per file in the output archive.
  • Avoids lines with duplicate indexes.

Note that the script doesn't check the input or output CSV files validity nor GTFS compliance.

Usage

./gtfsmerge.py gtfs1.zip gtfs2.zip gtfs3.zip output.zip