Bondify / gtfs_functions

Package with useful functions to create geo-spatial visualizations from a GTFS.
MIT License
114 stars 30 forks source link

sort shapes by sequence #20

Closed BeDSmonster closed 8 months ago

BeDSmonster commented 1 year ago

shapes.txt of some agencies such as SEPTA BUS needs to sort by shape_pt_sequencecolumn. Otherwise, the generated shapes geometry will be messed up.

Bondify commented 8 months ago

hey @BeDSmonster thanks for contributing, you have a good point and shapes should be sorted as you say. I found the code change you suggested was failing though since we first select a subset of rows that excludes "shape_pt_sequence" (aux[["shape_id", "shape_pt_lat", "shape_pt_lon"]]) but I incorporated a similar change in the latest update. Please let me know if you keep finding problems with this.