Filtering GTFS
Processing the GTFS files before mapping the public transit to the MATSim network
Last updated
Processing the GTFS files before mapping the public transit to the MATSim network
Last updated
Data reference:
PID GTFS:
Filter out routes that are suburban and keep only:
Tram L1-26, night tram L90-L96
Bus L100-L299, night bus L900-L916
Subway L991-L993 (metro A-C)
Funicular L49
Ferry L1801-L1807 (P1-P7)
Clone the Metacity-MATSim repository
Move into the utility/gtfs
folder
Add the downloaded (unzipped) GTFS folder into the utility/gtfs/data
folder
Run: python filter_by_route_id.py data/PID_GTFS/ -o PID_GTFS_filtered/
The filtered GTFS will be in the utility/gtfs/output
folder by default