now8-org / gtfsmerge

Script to merge GTFS ZIP archives into one.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GTFSmerge

Script to merge GTFS ZIP archives into one.

Features

  • Uses the first archive contents as a reference.
  • Supports wildcards in input arguments.
  • 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

About

Script to merge GTFS ZIP archives into one.

License:GNU General Public License v3.0


Languages

Language:Python 100.0%