node-gtfs icon indicating copy to clipboard operation
node-gtfs copied to clipboard

The bounding_box_side_m option does not guarantee stop order by distance

Open laem opened this issue 10 months ago • 1 comments

Hi, I think it would make sense to order getStops return array order by distance in case this option is used. Distance from the input stop_lat and stop_lon.

I guess an simple SQL clause could suffice ?

What do you think ?

laem avatar Feb 21 '25 11:02 laem

Great suggestion. Try out the latest release and let me know if this does what you had in mind: https://github.com/BlinkTagInc/node-gtfs/releases/tag/4.15.13

brendannee avatar Feb 21 '25 19:02 brendannee