<h3 dir="auto">Description</h3>
<p dir="auto">This PR adds a geo protocol handler in the web manifest and the functionality for parsing in mapParams.<br>
We can't directly parse it as it arrives wrapped in <code class="notranslate">encodeURIComponent</code>,<br>
<code class="notranslate">geo:48.410,12.060?z=9</code> would be handled as <a href="https://www.openstreetmap.org/?geouri=geo%3A48.410%2C12.060%3Fz%3D9" rel="nofollow">https://www.openstreetmap.org/?geouri=geo%3A48.410%2C12.060%3Fz%3D9</a><br>
This also includes a heuristic zoom fallback based on the precision.</p>
<h3 dir="auto">How has this been tested?</h3>
<p dir="auto">With <code class="notranslate">navigator.registerProtocolHandler</code>, which can be included later to settle <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="124543271" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/1123" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/1123/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/1123">#1123</a> (I don't know where to put it).</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/5736'>https://github.com/openstreetmap/openstreetmap-website/pull/5736</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5736/commits/3613d40b70b40e8222c5066499bea2fb92f840f7" class="commit-link">3613d40</a>  Add PWA geo protocol handler</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5736/files">2 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5736/files#diff-9ea58a8ca792a67a03855e43d50801951a64a132c9dedfcd46e32e08803ea390">app/assets/favicons/manifest.json.erb</a>
    (8)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5736/files#diff-a9b88a8a3644f944b9bd54361da588c69fa6a210cf7327194c17895a8ad2b0d6">app/assets/javascripts/osm.js.erb</a>
    (7)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5736.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5736.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5736.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5736.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/5736">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLPRULBJVN3GWFMHRF32SEEXNAVCNFSM6AAAAABYDP55XWVHI2DSMVQWIX3LMV43ASLTON2WKOZSHA4DQMZVGU3TINQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLN4YNM7YRP5EQOMTLT2SEEXNA5CNFSM6AAAAABYDP55XWWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHKYKGPUI.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/5736</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/5736",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5736",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>