Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find the nearest coordinates for given bounds #280

Open
yulafezmesi opened this issue Nov 12, 2021 · 1 comment
Open

Find the nearest coordinates for given bounds #280

yulafezmesi opened this issue Nov 12, 2021 · 1 comment

Comments

@yulafezmesi
Copy link

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);
@Asinox
Copy link

Asinox commented Nov 12, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants