]> git.openstreetmap.org Git - rails.git/commitdiff
Fix eslint warnings
authorTom Hughes <tom@compton.nu>
Sun, 19 Jul 2020 18:54:17 +0000 (19:54 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 19 Jul 2020 18:54:17 +0000 (19:54 +0100)
app/assets/javascripts/index/directions/graphhopper.js

index 2462d1d3024b263ad3d05bd84be001b40334f6c5..829eb54a080c45eb5603ef9a36429f16d602702a 100644 (file)
@@ -23,13 +23,13 @@ function GraphHopperEngine(id, vehicleType) {
       return $.ajax({
         url: OSM.GRAPHHOPPER_URL,
         data: {
-          "vehicle": vehicleType,
-          "locale": I18n.currentLocale(),
-          "key": "LijBPDQGfu7Iiq80w3HzwB4RUDJbMbhs6BU0dEnn",
-          "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: true,
+          point: points.map(function (p) { return p.lat + "," + p.lng; })
         },
         traditional: true,
         dataType: "json",