<p>The rename is only a refactoring preventing confusion like in <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="555206597" data-permission-text="Issue title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/2521" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/2521/hovercard?comment_id=370989660&comment_type=review_comment" href="https://github.com/openstreetmap/openstreetmap-website/pull/2521#discussion_r370989660">#2521 (comment)</a></p>
<p>The variables <code>to</code> and <code>from</code> are not the same as the properties a few lines below.</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/2548'>https://github.com/openstreetmap/openstreetmap-website/pull/2548</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>rename internal variable</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2548/files#diff-0">app/assets/javascripts/index/directions.js</a>
    (12)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/2548.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/2548.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/2548.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/2548.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/2548?email_source=notifications&email_token=AAK2OLJUCTLDXFUH7RHGM3LRE27SLA5CNFSM4K4MNE72YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IQSBF4A">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLN4FZJSAB2R4FHJE6TRE27SLANCNFSM4K4MNE7Q">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAK2OLOJZXYKHJNXT4GCBD3RE27SLA5CNFSM4K4MNE72YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IQSBF4A.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/2548?email_source=notifications\u0026email_token=AAK2OLJUCTLDXFUH7RHGM3LRE27SLA5CNFSM4K4MNE72YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IQSBF4A",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/2548?email_source=notifications\u0026email_token=AAK2OLJUCTLDXFUH7RHGM3LRE27SLA5CNFSM4K4MNE72YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IQSBF4A",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>