<p dir="auto">Answers the question <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2840500369" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/5635" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/5635/hovercard?comment_id=2646420820&comment_type=issue_comment" href="https://github.com/openstreetmap/openstreetmap-website/pull/5635#issuecomment-2646420820">#5635 (comment)</a>.</p>
<p dir="auto">If the location was already acquired with <em>Show My Location</em>, it is used as a starting location in <em>Directions</em> if</p>
<ul dir="auto">
<li>the starting location is empty AND</li>
<li>no <code class="notranslate">route</code> param was provided (this is to support <em>Reverse Directions</em>; points are reversed using the <code class="notranslate">route</code> parameter; we want to suppress substituting the location when empty value is swapped into the starting point)</li>
</ul>
<p dir="auto">If <em>Show My Location</em> wasn't activated before opening the <em>Directions</em> page, the activation will use the acquired location as soon as it's available, again if the starting location is empty.</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/5671'>https://github.com/openstreetmap/openstreetmap-website/pull/5671</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5671/commits/31bd74c83ea69efc9bd0f8b92fccd29dd1af656a" class="commit-link">31bd74c</a> Set directions starting point to "Show My Location"</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5671/files">1 file</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5671/files#diff-fdb9558c2ba79ddf9fbcb92594a8a8fa54abb1b3e25ce264de37951b428a958b">app/assets/javascripts/index/directions.js</a>
(23)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5671.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5671.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5671.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5671.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/5671">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLM65KNWKHLLPJTOCO32PUU6VAVCNFSM6AAAAABXDMQIDGVHI2DSMVQWIX3LMV43ASLTON2WKOZSHA2TEMZSHEZTMNI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLMPRYM7OP2ULX43DHL2PUU6VA5CNFSM6AAAAABXDMQIDGWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHKUAYXSU.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/5671</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/5671",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5671",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>