geolib icon indicating copy to clipboard operation
geolib copied to clipboard

Find the nearest coordinates for given bounds

Open yulafezmesi opened this issue 3 years ago • 1 comments

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);

yulafezmesi avatar Nov 12 '21 10:11 yulafezmesi

Wow, I'm want to know the same thing...

Asinox avatar Nov 12 '21 17:11 Asinox