<p>I quite changed<br>
<code>route: to.lat + "," + to.lng + ";" + from.lat + "," + from.lng</code><br>
to<br>
<code>route: to ? (to.lat + "," + to.lng) : "" + ";" + from ? (from.lat + "," + from.lng) : ""</code></p>
<p>But this looks ugly</p>
<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/2521?email_source=notifications&email_token=AAK2OLLSZHOU3BLSLIFMJETQ7VTJHA5CNFSM4KLWABMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ5Q5YY#issuecomment-578490083">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLMPPQ5FGFLNPRYBMETQ7VTJHANCNFSM4KLWABMA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAK2OLLAJX7IU36AP7LM46TQ7VTJHA5CNFSM4KLWABMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ5Q5YY.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/2521?email_source=notifications\u0026email_token=AAK2OLLSZHOU3BLSLIFMJETQ7VTJHA5CNFSM4KLWABMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ5Q5YY#issuecomment-578490083",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/2521?email_source=notifications\u0026email_token=AAK2OLLSZHOU3BLSLIFMJETQ7VTJHA5CNFSM4KLWABMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ5Q5YY#issuecomment-578490083",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>