You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Modify Nominatim configs to support additional 'place=' types in search results #374
What's your idea for a cool feature that would help you use OHM better.
Right now, when users tag an old (or non-Western) administrative (or not) area with a place=* tag, the current stack transmorgrifies everything into a state, or country, or county, or whatever aligns to the US / European view of the world.
It would be great if the search results reflected the actual terms used throughout history.
The current hierarchy of place types in Nominatim doesn't support returning historical place types, including place=territory or place=native (or whatever term we come up with to help satisfy #204) or any number of interesting place types, such as Caliphate, Duchy, Grand Duchy, "County" -> when that meant you were ruled by a "Count", Colony, Sultanates, Prefectures, Vilayet, Eyalets, Sanjaks, etc.
It also doesn't support returning battlefields.
The default Nominatim settings don't even allow for 'Provinces' or 'Territories' in search results.
I'm wondering if this is something we could fix by configuring the 'NOMINATIM ADDRESS LEVEL CONFIG' or the 'IMPORT STYLE' for our deployment, but I couldn't find where they were in Github.
I'm wondering if this is something we could fix by configuring the 'NOMINATIM ADDRESS LEVEL CONFIG' or the 'IMPORT STYLE' for our deployment, but I couldn't find where they were in Github.
As of #455 (comment), the address levels are defined in this file:
Right now, when users tag an old (or non-Western) administrative (or not) area with a place=* tag, the current stack transmorgrifies everything into a state, or country, or county, or whatever aligns to the US / European view of the world.
As it turns out, Nominatim has nothing to do with these labels. The address level configuration is a red herring. Apparently ohm-website just translates the admin_level=* value to a designation based on a table that doesn’t reflect any country in the present day, let alone the past. I’m working on a fix in openstreetmap/openstreetmap-website#5493 that will enable us to make these labels say anything we want based on border_type=*. ohm-website will still be responsible for translating common border_type=* values to other languages.
Activity
1ec5 commentedon Feb 7, 2025
As of #455 (comment), the address levels are defined in this file:
https://github.com/OpenHistoricalMap/nominatim-ui/blob/81e184d68b5bbe09a18eca79e9a73c08971bcf74/address-levels.json#L3-L35
which is specified by the Nominatim configuration:
https://github.com/OpenHistoricalMap/ohm-deploy/blob/5b72c8213524801edf39c666c0fdb13dd997e0c5/values.production.template.yaml#L677
which is also given as an example in osm-seed:
https://github.com/developmentseed/osm-seed/blob/49245d21c7ef9a9314c63397914d71f1b5fd235d/envs/.env.nominatim.example#L16
As it turns out, Nominatim has nothing to do with these labels. The address level configuration is a red herring. Apparently ohm-website just translates the
admin_level=*value to a designation based on a table that doesn’t reflect any country in the present day, let alone the past. I’m working on a fix in openstreetmap/openstreetmap-website#5493 that will enable us to make these labels say anything we want based onborder_type=*. ohm-website will still be responsible for translating commonborder_type=*values to other languages.1ec5 commentedon Mar 17, 2025
Closing in favor of #986.