Repository navigation
Description
Nominatim search results and Overpass query results in the sidebar should label a greater variety of administrative boundary designations, including many designations that have fallen out of use, such as rancho in the Americas, caliphate in the Middle East, and empire all over.
Until recently, the website has labeled Nominatim search results and Overpass API query results for boundary=administrative features based purely on the admin_level=* value. The numeric value is translated into a human-readable word inspired by real-world administrative structures like “State” and “Village”, though the whole hierarchy of terms doesn’t occur in any present-day country. openstreetmap/openstreetmap-website#5493 removes this terminology in favor of the original numeric values, while introducing support for border_type=* as a human-readable override that’s both data-driven and translatable.
Historically, OHM has not relied on the boundary=administrative labels. We had to map an explicit place=* point in order to label the administrative area. The website prioritizes this label point’s place=* value over the boundary’s admin_level=* value. As a result, #374 and #646 called for extending Nominatim to recognize a substantially longer list of place types. But now that #701 is fixed, we have an opportunity to deemphasize the place=* points for non-settlement administrative areas, even deleting them, which will make border_type=* the more appropriate customization hook.
All we need to do is extend the list of English source strings under geocoder.search_osm_nominatim.prefix.border_types to have better coverage of administrative area designations in history. Then translators will be able to provide translations for those designations. So far, OHM’s border_type=* usage hasn’t strayed very far from OSM; we’ll need to tag more boundaries with border_type=* in order for this functionality to take effect.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsReady for Staging
Activity