]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/directions/graphhopper.js
Move routing API endpoint addresses to config file
[rails.git] / app / assets / javascripts / index / directions / graphhopper.js
index 2d3455eeeda6ac1ca058de6f08bc71fc39c8f67a..c35085b35482fcbf336a7dd76c96522675affbb2 100644 (file)
@@ -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(),