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

Danish cities seem unsearchable #8

Closed
mifriis opened this issue Jan 21, 2020 · 3 comments
Closed

Danish cities seem unsearchable #8

mifriis opened this issue Jan 21, 2020 · 3 comments

Comments

@mifriis
Copy link

mifriis commented Jan 21, 2020

This is a bit of a niche issue, but of all the countries i tried in Europe they all seem to find cities without any problems.

When i tried Denmark, i couldn't find any. I know you use overpass turbo but openstreet maps do have most if not all danish cities and towns.

I attempted to find the /search?q=town endpoint in your code to dive into the query that gets sent but i can't seem to find it. It could be that data is classified differently here?

All our neighbours like Germany, Norway, UK, Netherlands and Sweden are working just diddly fine.

@erkanyildiz
Copy link

I see Nominatim API results for Danish cities haveosm_types as node only.

https://nominatim.openstreetmap.org/search?format=json&q=copenhagen
https://nominatim.openstreetmap.org/search?format=json&q=brondby
https://nominatim.openstreetmap.org/search?format=json&q=aalborg

I do not know why, but results are filtered by osm_type as relation.

.then(x => x.filter(row => row.osm_type === 'relation').map(row => ({

I believe this is the reason.

@erkanyildiz
Copy link

Related #7

@mifriis
Copy link
Author

mifriis commented Jan 24, 2020

Fixed in 999b941 thank you!

@mifriis mifriis closed this as completed Jan 24, 2020
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