geolib
geolib copied to clipboard
Find the nearest coordinates for given bounds
How can I find the nearest coordinates by given bounds with existing functions?
I have got a center point that I want to fetch the nearest coordinates. orderByDistance
is sorting the distance but I would like to pass a distance parameter to get all coordinates based on the max distance. Is that possible?
Like this:
orderByDistance({ lat: query.center_lat, lng: query.center_lng }, maxDistance:10000);
Wow, I'm want to know the same thing...