<p></p>
<p dir="auto">For Overpass queries, there’s currently a special case that pulls in a dedicated string based on the <code class="notranslate">admin_level=*</code> if it’s present. Maybe instead we could use the generic “Administrative Boundary” label, using the normal code path, but add a suffix like “(Level 3)”?</p>
<p dir="auto"><a href="https://github.com/openstreetmap/openstreetmap-website/blob/7565f5aa4aad13bb45929ba26e82a1ab3ca28210/app/assets/javascripts/index/query.js#L73-L78">https://github.com/openstreetmap/openstreetmap-website/blob/7565f5aa4aad13bb45929ba26e82a1ab3ca28210/app/assets/javascripts/index/query.js#L73-L78</a></p>
<p dir="auto">For Nominatim queries, if a <code class="notranslate">place=*</code> tag is present on either the boundary or the <code class="notranslate">label</code> member, we show that as the label instead of anything related to the boundary:</p>
<p dir="auto"><a href="https://github.com/openstreetmap/openstreetmap-website/blob/7565f5aa4aad13bb45929ba26e82a1ab3ca28210/app/controllers/geocoder_controller.rb#L101-L107">https://github.com/openstreetmap/openstreetmap-website/blob/7565f5aa4aad13bb45929ba26e82a1ab3ca28210/app/controllers/geocoder_controller.rb#L101-L107</a></p>
<p dir="auto">For example, searching for “<a href="https://www.openstreetmap.org/search?query=Wapakoneta#map=13/40.56551/-84.19397" rel="nofollow">Wapakoneta</a>” returns <a href="https://www.openstreetmap.org/relation/182636" rel="nofollow">this <code class="notranslate">boundary=administrative</code> <code class="notranslate">admin_level=8</code> relation</a> but labels it as a “Town” based on the <code class="notranslate">place=town</code> tag on <a href="https://www.openstreetmap.org/node/153976720" rel="nofollow">this <code class="notranslate">label</code> member</a>. The label doesn’t call it a “boundary” of any sort, even if that’s what gets highlighted when you select the result. This is pretty reasonable, because the boundary represents a populated place that we’d tag as a <code class="notranslate">place=town</code> regardless of the boundary or legal designation. However, for something that doesn’t represent a populated place, such as a U.S. county or a French department, a <code class="notranslate">label</code> wouldn’t be as relevant or appropriate, so there still needs to be a “boundary” label for the search result.</p>
<p dir="auto">I think it would be possible to use a suffix here too. It would need some additional translatable format strings.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/5450#issuecomment-2565817707">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLLE2FSEKJD2AEEDU2T2IGJUFAVCNFSM6AAAAABUMHGO3SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRVHAYTONZQG4">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLITEFJFZUMDPVRHSXD2IGJUFA5CNFSM6AAAAABUMHGO3SWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUY55CWW.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/issues/5450/2565817707</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/5450#issuecomment-2565817707",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/5450#issuecomment-2565817707",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>