]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/directions/graphhopper.js
Use an unstyled list for showing the languages
[rails.git] / app / assets / javascripts / index / directions / graphhopper.js
index 0a593f59bf9119286ebd1510a52f8189f4e78f68..9a09c1009bea6d8cd19ec787e2a2f5532c77af86 100644 (file)
@@ -23,14 +23,13 @@ function GraphHopperEngine(id, vehicleType) {
       return $.ajax({
         url: OSM.GRAPHHOPPER_URL,
         data: {
-          "vehicle": vehicleType,
-          "locale": I18n.currentLocale(),
-          "key": "LijBPDQGfu7Iiq80w3HzwB4RUDJbMbhs6BU0dEnn",
-          "ch.disable": vehicleType === "car",
-          "elevation": false,
-          "instructions": true,
-          "turn_costs": true,
-          "point": points.map(function (p) { return p.lat + "," + p.lng; })
+          vehicle: vehicleType,
+          locale: I18n.currentLocale(),
+          key: "LijBPDQGfu7Iiq80w3HzwB4RUDJbMbhs6BU0dEnn",
+          elevation: false,
+          instructions: true,
+          turn_costs: vehicleType === "car",
+          point: points.map(function (p) { return p.lat + "," + p.lng; })
         },
         traditional: true,
         dataType: "json",