spur-sim / spur

Simulation for Planning and Understanding Railways
MIT License
9 stars 4 forks source link

Add GTFS Converter #71

Open omar-kabbani opened 3 months ago

omar-kabbani commented 3 months ago

To address https://github.com/spur-sim/spur/issues/27 Added GTFS_converter.py which takes in GTFS files (routes.txt, stop_times.txt, stops.txt, and trips.txt) and generates corresponding input files for spur (components.json, routes.json, tours.json)

Limitations:

I used the GO Transit GTFS data to test: https://www.gotransit.com/en/partner-with-us/software-developers

Please let me know what you think!

wklumpen commented 2 months ago

Hey Omar,

Been through this a bunch now diagnosing some issues, and I think we'll need to take another stab. There's a few "gotchas" in the model that we'll need to think through, such as:

There might be a hybrid way we can clean up some of the extra mess that comes with GTFS so that it works back into the Spur system. I'll give it some thought.

For now I suggest we mark this as hold.