Replies: 1 comment
-
Boundaries of admin level 5 are explicitly excluded from the address for Germany, see https://github.com/osm-search/Nominatim/blob/master/settings/address-levels.json#L132. They are usually not relevant for addressing and thus caused more harm than good. You can set up a custom database for Nominatim where you delete the line above and should get the full administrative hierarchy. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to extract information about admin levels for several coordinates using reverse geocoding. In order to get consistent information I use format=geocodejson. This works fine and a lot of information is returned including some admin levels. As far as I understand some information is included in the admin dict and some is mapped between admin levels and clearnames. However I'm missing information about admin_level_5 (state district) in an area where it should be available.
API call:
https://nominatim.openstreetmap.org/reverse?lat=48.1225204&lon=11.5592957&format=geocodejson
I expected 'Upper Bavaria' to be included in the reponse as state_district or admin_level5
Beta Was this translation helpful? Give feedback.
All reactions