Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Croatia gets a "state" field when I do a reverse geocode #4273

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 3 comments
Closed

Croatia gets a "state" field when I do a reverse geocode #4273

openstreetmap-trac opened this issue Jul 23, 2021 · 3 comments

Comments

@openstreetmap-trac
Copy link

Reporter: Janjko
[Submitted to the original trac issue database at 3.47pm, Tuesday, 6th March 2012]

In this XML:

http://nominatim.openstreetmap.org/reverse?format=xml&lat=45.48209&lon=15.935122&zoom=18&addressdetails=1

I see that by reverse geocoding I get a county (Karlovaka upanija), which is ok because we have those, but also a state (Zagrebaka upanija), which Croatia doesn't have. Where do you get information about which administration levels does a country have?

The name it got for a state is actualy a neighbouring county.

@openstreetmap-trac
Copy link
Author

Author: lonvia
[Added to the original trac issue at 4.31pm, Wednesday, 7th March 2012]

The county Karlovaka upanija comes from the place node 549260451 and is wrong (see bug #4247). The state comes from boundary relation 226241 and is actually correct. It is confused as a state because Croatia seems to use admin_level=4 for its counties instead of the customary admin_level=6.

To fix this, we'd need an address localisation in Nominatim that maps the admin_levels to place types on a country basis.

@openstreetmap-trac
Copy link
Author

Author: Janjko
[Added to the original trac issue at 2.59pm, Thursday, 8th March 2012]

Thank you very much!

I have talked to Croatian mappers and they agree to change the borders to admin_level=6.

If the borders are admin_level=6, and the nodes are place=county, will it still be a problem? If so, I'll delete the nodes too, we don't need ways and nodes for the same thing (except for countries I guess, because of rendering.)

We'll see how it goes.

@openstreetmap-trac
Copy link
Author

Author: lonvia
[Added to the original trac issue at 8.10pm, Thursday, 8th March 2012]

You can leave the nodes. (In fact, they are currently needed by the renderer to put the label of the county on the map.) Nominatim should find out that place nodes and boundaries belong together.

I'll close the ticket as you have fixed the issue in the OSM data.

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

No branches or pull requests

1 participant