Processing the GTFS files before mapping the public transit to the MATSim network
Data reference: https://developers.google.com/transit/gtfs/referencearrow-up-right
PID GTFS: https://pid.cz/o-systemu/opendata/arrow-up-right
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
utility/gtfs
Add the downloaded (unzipped) GTFS folder into the utility/gtfs/data folder
utility/gtfs/data
Run: python filter_by_route_id.py data/PID_GTFS/ -o PID_GTFS_filtered/
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
utility/gtfs/output
Last updated 3 years ago