Skip to content

Nominatim should index features by boundary relations #693

Open
@1ec5

Description

@1ec5

Nominatim doesn’t appear to be indexing features based on the OpenHistoricalMap boundary relations that contain them. However, it does fall back to indexing places based on place points, which are often anachronistic. These fallbacks appear in the “address” that Nominatim generates for each result.

For example, if I search for “Tenochtitlan”, the first result is “Tenōchtitlan, México”. The Tenochtitlan node is located inside the Teotihuacán boundary relation, which Nominatim does index; however, Tenochtitlan’s “address” only includes Mexico, apparently based on this place node that’s a label within the Mexico boundary relation. That boundary relation is from a different time period, but at least indexing it by boundary would be preferable to falling back to the place node, which doesn’t make it easy to find the responsible feature.

This issue is more pronounced in some places where we’ve mapped more hierarchical boundaries. For example, the town of Jena was located in Thuringia, but its Nominatim address only mentions Germany. Many countries have multiple localities with the same name in different regions, so this issue makes it much harder to find a place, especially if the user has learned a habit of qualifying the place name with a region, as you often have to do for OpenStreetMap’s Nominatim instance.

OSM’s Nominatim instance definitely indexes places by boundary relation, so I’m unsure why this isn’t the case in OHM.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions