gpxpy icon indicating copy to clipboard operation
gpxpy copied to clipboard

Add GPXTrack.get_nearest_locations method

Open pleasantone opened this issue 1 year ago • 0 comments

get_nearest_locations works just across the entire GPX database, which is fine for some uses, but if one is trying to match up all the waypoints against tracks (which could be used for an individual part of a trip), there is no way to just match against a track.

Luckily the fix is trivial, unfortunately it is cut-and-paste since we don't inherit from a more generic track vs tracks object.

This pull request also includes #272, please don't apply both. Just giving you the option to decide if you want the added functionality or just the bug fix

pleasantone avatar Dec 15 '23 00:12 pleasantone