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

Use correct type for location lookup #1014

Open
harald-aigner opened this issue Aug 26, 2024 · 0 comments
Open

Use correct type for location lookup #1014

harald-aigner opened this issue Aug 26, 2024 · 0 comments

Comments

@harald-aigner
Copy link

When locations are looked up, LocationIQ and OpenCage often return multiple results with different types. In this case, only the first result is used, which in some cases leads to incorrect locations.

For example, searching for Vomperbach using LocationIQ returns two results, one with "class": "waterway" and the other with "class": "place". Only the second one (place) is correct and should be used in this case.

OpenCage behaves similar, returning results[0].components._category:"natural/water" and results[1].components._category:"place". Again, only the second one (place) is correct.

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

1 participant