X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/fb854652ea47d7b3fa1657722f1da768eaba4f25..41b81bd393cafe8fb0d25ccdc3afb08fb695bb52:/app/assets/javascripts/index/directions.js diff --git a/app/assets/javascripts/index/directions.js b/app/assets/javascripts/index/directions.js index e2cdd3a54..3f78c7089 100644 --- a/app/assets/javascripts/index/directions.js +++ b/app/assets/javascripts/index/directions.js @@ -115,18 +115,6 @@ OSM.Directions = function (map) { // Cancel any route that is already in progress if (routeRequest) routeRequest.abort(); - // go fetch geocodes for any endpoints which have not already - // been geocoded. - for (var ep_i = 0; ep_i < 2; ++ep_i) { - var endpoint = endpoints[ep_i]; - if (!endpoint.hasGeocode && !endpoint.awaitingGeocode) { - endpoint.getGeocode(); - } - } - if (endpoints[0].awaitingGeocode || endpoints[1].awaitingGeocode) { - return; - } - var o = endpoints[0].latlng, d = endpoints[1].latlng;