]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/directions/mapzen.js
Move routing API endpoint addresses to config file
[rails.git] / app / assets / javascripts / index / directions / mapzen.js
index 73643ba465faa613da1426b50bbd85df0bc57967..348cb99c99c58367b7611f3b4b318ec5c02f5afe 100644 (file)
@@ -39,7 +39,7 @@ function MapzenEngine(id, costing) {
 
     getRoute: function (points, callback) {
       return $.ajax({
-        url: document.location.protocol + "//valhalla.mapzen.com/route",
+        url: document.location.protocol + OSM.MAPZEN_VALHALLA_URL,
         data: {
           api_key: OSM.MAPZEN_VALHALLA_KEY,
           json: JSON.stringify({