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 places instead of some around the limit #3

Open
tribakzero opened this issue Jan 17, 2022 · 0 comments
Open

Find the nearest places instead of some around the limit #3

tribakzero opened this issue Jan 17, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@tribakzero
Copy link
Owner

Currently, Overpass API won't allow me to retrieve the nearest two elements, but some random ones, this could be useful for people that would like to go to those places instead of using the Detector feature.

For this to happen we need to replace the query so it returns more than 2 values (all maybe?) and then with the full data do some geolocation pre-processing to sort the points by closeness to the center we have. Then feed those two nearest of each type to nominatim instead. This should return closer addresses than what we currently return.

@tribakzero tribakzero added the enhancement New feature or request label Jan 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant