UrbanAnalyst / gtfsrouter

Routing and analysis engine for GTFS (General Transit Feed Specification) data
https://urbananalyst.github.io/gtfsrouter/
81 stars 17 forks source link

gtfs_bounding_box function #44

Closed mpadge closed 3 years ago

mpadge commented 3 years ago

Develop a function to reduce a GTFS feed to within a defined bounding box, through removing all routes which do not pass within the bounding box at all.

mpadge commented 3 years ago

@dhersz @polettif @rafapereirabr @tbuckl I think this function is a good idea, but don't think it belongs here. Any suggestions about where such a function would be exist? I'd be happy to pull it together, conceptually adapting straight from osmdata::trim_osmdata(), because identical options would generally apply here via a trim argument. (And the function would also admit bounding polygons, not just bounding boxes.)

rafapereirabr commented 3 years ago

Hi @mpadge , it would be great to include this function in the gtfstools package.

mpadge commented 3 years ago

Great, if you ping me via an issue there, then I'll get a PR together, and close this one in the meantime. Thanks!