[openstreetmap/openstreetmap-website] Directions: "Sorry - couldn't find that place": Say WHICH place (#1790)

mmd notifications at github.com
Sun Mar 25 09:33:47 UTC 2018


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:

```
      $.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;
        }
```


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.

![grafik](https://user-images.githubusercontent.com/5842757/37873596-221e0850-3020-11e8-920a-9bbd2b980ba4.png)


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/1790#issuecomment-375957194
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20180325/b7edabe7/attachment.html>


More information about the rails-dev mailing list