anvaka/city-roads

Danish cities seem unsearchable

mifriis opened this issue · 3 comments

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.

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.

Related #7

Fixed in 999b941 thank you!