X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/409e99c6fc1dae8bba2035e48427f01b4f138f3a..e128e78408561cb0fc319f17eb39c34e579bedad:/app/assets/javascripts/index/directions/graphhopper.js diff --git a/app/assets/javascripts/index/directions/graphhopper.js b/app/assets/javascripts/index/directions/graphhopper.js index 2d3455eee..c35085b35 100644 --- a/app/assets/javascripts/index/directions/graphhopper.js +++ b/app/assets/javascripts/index/directions/graphhopper.js @@ -21,7 +21,7 @@ function GraphHopperEngine(id, vehicleType) { // GraphHopper Directions API documentation // https://github.com/graphhopper/directions-api/blob/master/docs-routing.md return $.ajax({ - url: document.location.protocol + "//graphhopper.com/api/1/route", + url: document.location.protocol + OSM.GRAPHHOPPER_URL, data: { vehicle: vehicleType, locale: I18n.currentLocale(),