<p>It's a geocoding issue, one of {start, end} could not be found. It has nothing to do with a route that couldn't be found - see directions.js:</p>
<pre><code>      $.getJSON(OSM.NOMINATIM_URL + 'search?q=' + encodeURIComponent(endpoint.value) + '&format=json', function (json) {
        endpoint.awaitingGeocode = false;
        endpoint.hasGeocode = true;
        if (json.length === 0) {
          alert(I18n.t('javascripts.directions.errors.no_place'));
          return;
        }
</code></pre>
<p>Just put in some random (unknown) destination, like "zzzzzzzzzzzz", which triggers the alert box both when setting a new start position via the context menu on the map - or - simply hit the "Go" button.</p>
<p><a target="_blank" href="https://user-images.githubusercontent.com/5842757/37873596-221e0850-3020-11e8-920a-9bbd2b980ba4.png"><img src="https://user-images.githubusercontent.com/5842757/37873596-221e0850-3020-11e8-920a-9bbd2b980ba4.png" alt="grafik" style="max-width:100%;"></a></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/1790#issuecomment-375957194">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABWnLSYB6ao_rLKd_kbCRBwIwrzCtlNmks5th2R6gaJpZM4S5-se">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABWnLezIxEDtKdgRzjbRiw-mJk8Kei2Zks5th2R6gaJpZM4S5-se.gif" height="1" width="1" alt="" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/openstreetmap/openstreetmap-website/issues/1790#issuecomment-375957194"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/openstreetmap/openstreetmap-website","title":"openstreetmap/openstreetmap-website","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/openstreetmap/openstreetmap-website"}},"updates":{"snippets":[{"icon":"PERSON","message":"@mmd-osm in #1790: It's a geocoding issue, one of {start, end} could not be found. It has nothing to do with a route that couldn't be found - see directions.js:\r\n\r\n```\r\n      $.getJSON(OSM.NOMINATIM_URL + 'search?q=' + encodeURIComponent(endpoint.value) + '\u0026format=json', function (json) {\r\n        endpoint.awaitingGeocode = false;\r\n        endpoint.hasGeocode = true;\r\n        if (json.length === 0) {\r\n          alert(I18n.t('javascripts.directions.errors.no_place'));\r\n          return;\r\n        }\r\n```\r\n\r\n\r\nJust put in some random (unknown) destination, like \"zzzzzzzzzzzz\", which triggers the alert box both when setting a new start position via the context menu on the map - or - simply hit the \"Go\" button.\r\n\r\n![grafik](https://user-images.githubusercontent.com/5842757/37873596-221e0850-3020-11e8-920a-9bbd2b980ba4.png)\r\n"}],"action":{"name":"View Issue","url":"https://github.com/openstreetmap/openstreetmap-website/issues/1790#issuecomment-375957194"}}}</script>