Skip to content

Modify Nominatim configs to support additional 'place=' types in search results #374

Closed as not planned

Description

@jeffreyameyer

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.

image

image

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.

Current workarounds
None that I know of.

Activity

  1. 1ec5 commented on Feb 7, 2025

    @1ec5
    Member

    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:

    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

    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.

  2. added theissue type on Mar 16, 2025
  3. 1ec5 commented on Mar 17, 2025

    @1ec5
    Member

    Closing in favor of #986.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions