<p>This adapts to two changes in place handling by Nominatim:</p>
<ul>
<li>Place links that are computed by Nominatim are now found in extratags['linked_places']. Keep the check for extratags['place']<br>
as this may contain an explicitly mapped place label.</li>
<li>Use address rank for guessing the boundary type. This gets normalised by Nominatim with respect to country-specific use of admin_level.</li>
</ul>
<p>Also adds additional labels for admin levels, so that we now have complete coverage for all levels that are in use in OSM.</p>
<p>I would have liked to avoid the long line but rubocop insisted on using a modifier if.</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/2989'>https://github.com/openstreetmap/openstreetmap-website/pull/2989</a></p>
<h4>Commit Summary</h4>
<ul>
<li>Improve guessing of labels for Nominatim results</li>
</ul>
<h4>File Changes</h4>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/2989/files#diff-bf845b955a0aeb626484399330d9c39183e734c9a56a3900e71fa48b0da47f81">app/controllers/geocoder_controller.rb</a>
(4)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/2989/files#diff-44438ce218f5287c58d0017f965d888715635d94280669896f75841fbd7b4cd7">config/locales/en.yml</a>
(3)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/2989.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/2989.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/2989.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/2989.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2989">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLPBHFN3CWXP4O7W3GTSSVS43ANCNFSM4UJT7FWQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAK2OLK6VTTP7VN2GHLV6XDSSVS43A5CNFSM4UJT7FW2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4LH4ZSDQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/2989",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/2989",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>