Skip to content

Script to merge GTFS ZIP archives into one.

License

Notifications You must be signed in to change notification settings

now8-org/gtfsmerge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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