<p></p>
<p>I see the issue now. Once the search reports "Couldn't find a route between those two places." the only way to display a new route is to search again with a mode of transport that does have a route.</p>
<p>GraphHopper returns a 400 error. The <code>polyline</code> is removed from the map and the event function has a catch to not run if the <code>polyline</code> is not on the map.</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/issues/3050#issuecomment-761685496">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLKMIWHCP4L3VC5WK3TS2IDQLANCNFSM4WFHL7PQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAK2OLMPWQZXCQGWHSNA3RLS2IDQLA5CNFSM4WFHL7P2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFVTGL6A.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/issues/3050#issuecomment-761685496",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/3050#issuecomment-761685496",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>