mrcagney / gtfs_kit

A Python 3.8+ library for analyzing GTFS feeds.
MIT License
42 stars 7 forks source link

GTFS editing capabilities #8

Open markusstraub opened 7 months ago

markusstraub commented 7 months ago

Hi,

building on your nifty library I implemented some GTFS editing capabilities in https://github.com/ait-energy/gtfs-fiddler/. Quoting the README:


  1. Add additional trips
    • Earliest trip in the morning (for a specific time) with GtfsFiddler.ensure_earliest_departure
    • Latest trip in the evening (for a specific time) with GtfsFiddler.ensure_latest_departure
    • Trips to shorten intervals (for a specified maximum interval duration) with GtfsFiddler.ensure_max_trip_interval
  2. Increase speed of trips (for a specified average speed between two stops) with GtfsFiddler.ensure_min_speed

Also it provides typed access to the more of the feed's members (for autocompletion in IDE :)

The helper method fiddle.compute_stop_time_stats supplements the gtfs_kit utils.


Are you interested in merging this into gtfs_kit? I think it would be a great addition and I am happy to provide the code. Tell me what you think!

Best, Markus

araichev commented 7 months ago

Hi Markus, good to hear you're finding GTFS Kit useful. Skimming over your GTFS Fiddler code, i see how it can also be useful. However, i also think it's a little too niche to add to GTFS Kit, which is meant to be a general purpose GTFS library. At this point, i think Fiddler is better maintained as a separate library.

markusstraub commented 6 months ago

Hi Alex, OK let's keep it separate. If you change your mind I'm happy to help with the integration.

However, I would still suggest integration of compute_stop_time_stats into gtfs_kit as this is a general-purpose analysis method, what do you think?