<p dir="auto">Search results for Nominatim and Overpass queries now label administrative boundaries according to the real-world designation according to the <code class="notranslate">border_type=*</code> tag. If the value of this tag is unrecognized, the label falls back to a more generic “Administrative Boundary (Level <em>n</em>)”, where <em>n</em> is the <code class="notranslate">admin_level=*</code> value. The English localization no longer attempts to translate these administrative levels to a fictional country’s administrative hierarchy.</p>
<markdown-accessiblity-table><table role="table">
<thead>
<tr>
<th>Before</th><th>After</th>
</tr>
</thead>
<tbody>
<tr></tr>
<tr>
<td>
<p dir="auto"><a href="https://www.openstreetmap.org/query?lat=39.252971&lon=-84.281251#map=18/39.253109/-84.280527" rel="nofollow"><a href="https://github.com/user-attachments/assets/591d07d6-8a05-41f1-95df-b5825b54ef9f">nh.png (view on web)</a></a></p>
</td>
<td>
<p dir="auto"><a href="http://0.0.0.0:3000/query?lat=39.252971&lon=-84.281251#map=18/39.253109/-84.280527" rel="nofollow"><a href="https://github.com/user-attachments/assets/c40b753d-a164-43e2-badc-0ed0213cb290">Screenshot.2025-01-11.at.16-38-09.Query.Features.OpenStreetMap.png (view on web)</a></a></p>
</td>
</tr>
<tr></tr>
<tr>
<td>
<p dir="auto"><a href="https://www.openstreetmap.org/query?lat=43.068068&lon=-79.019396#map=18/43.068339/-79.018591" rel="nofollow"><a href="https://github.com/user-attachments/assets/c48197d5-43b5-423e-a39e-6d7e9e142f3b">nh.png (view on web)</a></a></p>
</td>
<td>
<p dir="auto"><a href="http://0.0.0.0:3000/query?lat=43.068068&lon=-79.019396#map=18/43.068339/-79.018591" rel="nofollow"><a href="https://github.com/user-attachments/assets/c15c8e21-76ec-46d4-80cc-6eed54a845a6">nh.png (view on web)</a></a></p>
</td>
</tr>
<tr></tr>
<tr>
<td>
<p dir="auto"><a href="https://www.openstreetmap.org/search?query=Hamilton#map=11/39.1673/-84.5384" rel="nofollow"><a href="https://github.com/user-attachments/assets/aaf83f07-9c72-4452-91ed-61f8006ec504">nh.png (view on web)</a></a></p>
</td>
<td>
<p dir="auto"><a href="http://0.0.0.0:3000/search?query=Hamilton#map=11/39.1673/-84.5384" rel="nofollow"><a href="https://github.com/user-attachments/assets/2483be9a-e647-4d84-b411-585607d55386">nh.png (view on web)</a></a></p>
</td>
</tr>
</tbody>
</table></markdown-accessiblity-table>
<p dir="auto">There are <a href="https://wiki.openstreetmap.org/wiki/Key:border_type#Alternatives" rel="nofollow">many tagging schemes</a> for the real-world designation, each with their advantages and disadvantages, but I focused on <code class="notranslate">border_type=*</code> for now because it’s the most common scheme globally.</p>
<p dir="auto"><span class="issue-keyword tooltipped tooltipped-se" aria-label="This pull request closes issue #5450.">Fixes</span> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2763386568" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/5450" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/5450/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/5450">#5450</a>.</p>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/openstreetmap/openstreetmap-website/pull/5493'>https://github.com/openstreetmap/openstreetmap-website/pull/5493</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5493/commits/8a2e4b3e62daef507d776e1dff5e75d4d20a3093" class="commit-link">8a2e4b3</a> Label administrative boundaries by level</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5493/commits/0c6ded3df3681f015836aa6fda6db23a5344e7a9" class="commit-link">0c6ded3</a> Level 2 is always an international boundary</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5493/commits/1b9dcca4a9fca8ac670188bf313c8ef78173aeec" class="commit-link">1b9dcca</a> Label boundaries by regional official designations</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5493/files">3 files</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5493/files#diff-8275a6df0995b2af17f0b52a0dfe5a00f8b09d9d51b89516e2612a3faa9d8c0f">app/assets/javascripts/index/query.js</a>
(8)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5493/files#diff-bf845b955a0aeb626484399330d9c39183e734c9a56a3900e71fa48b0da47f81">app/controllers/geocoder_controller.rb</a>
(6)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5493/files#diff-44438ce218f5287c58d0017f965d888715635d94280669896f75841fbd7b4cd7">config/locales/en.yml</a>
(47)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5493.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5493.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5493.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5493.diff</a></li>
</ul>
<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/pull/5493">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLLJY2HBKCJAW4ZXU5T2KG42DAVCNFSM6AAAAABVAPFHJOVHI2DSMVQWIX3LMV43ASLTON2WKOZSG44DEMRRGUYDIMI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLIIUGQNN3UVXN6T26D2KG42DA5CNFSM6AAAAABVAPFHJOWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHKLVJ3QE.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/pull/5493</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/pull/5493",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5493",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>