Metacity
  • Welcome
  • Metacity
    • Installation
    • [dev] CGAL Dependency
    • Data Import
    • Models and Attributes
    • Layers
    • Grids
    • Quad-trees
    • Dockerized Processor
    • Development notes
  • Archives
    • DataAPI
      • Development
    • MetacityGL
      • Installation
      • Creating a MetacityGL App
      • Writing Custom Layers
      • Loading Metacity Data
      • Development notes
    • BananaGL
      • Development
    • AMOS
      • Synthetic Population
        • Case Studies
        • Data Specification
        • Activity Chains
        • Spatial Distribution
        • MATSim population input and comparison
        • Households
      • MATSim
        • Basic Info
        • Running Scenario
          • Config File
          • Current state
        • Input information
          • OSM
          • Filtering GTFS
          • Coordinates
        • Output
          • Processing
      • OICT
        • MapResolver
      • Resources
        • Trafic Simulation
        • MATSim
        • Vis and Meta Software
        • Synthetic Population
        • Public Relations
        • Inspiration
    • Metacity Block Edition
      • Epic Games Mega Grant
      • 🧠Internal notes
  • Links
    • Homepage
    • GitHub
  • Code of Conduct
Powered by GitBook
On this page
  • URL
  • Keeping Urban Routes Only
  • Running the Filter
Edit on GitHub
  1. Archives
  2. AMOS
  3. MATSim
  4. Input information

Filtering GTFS

Processing the GTFS files before mapping the public transit to the MATSim network

PreviousOSMNextCoordinates

Last updated 2 years ago

URL

Data reference:

PID GTFS:

Keeping Urban Routes Only

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)

Running the Filter

  1. Clone the Metacity-MATSim repository

  2. Move into the utility/gtfs folder

  3. Add the downloaded (unzipped) GTFS folder into the utility/gtfs/data folder

  4. Run: python filter_by_route_id.py data/PID_GTFS/ -o PID_GTFS_filtered/

  5. The filtered GTFS will be in the utility/gtfs/output folder by default

https://developers.google.com/transit/gtfs/reference
https://pid.cz/o-systemu/opendata/