]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/directions/graphhopper.js
Merge remote-tracking branch 'openstreetmap/pull/1437'
[rails.git] / app / assets / javascripts / index / directions / graphhopper.js
index 267b1b4a6af09919423899e2eee921ee39ce978f..4bb4e4ed6bc160870d50c4ae1e1845c04f42529c 100644 (file)
@@ -54,7 +54,7 @@ function GraphHopperEngine(id, vehicleType) {
               lineseg.push({lat: line[j][0], lng: line[j][1]});
             }
             steps.push([
-              {lat: latLng.lat, lng: latLng.lng},
+              {lat: latLng[0], lng: latLng[1]},
               instrCode,
               instrText,
               distInMeter,
@@ -66,7 +66,9 @@ function GraphHopperEngine(id, vehicleType) {
             line: line,
             steps: steps,
             distance: path.distance,
-            time: path.time / 1000
+            time: path.time / 1000,
+            ascend: path.ascend,
+            descend: path.descend
           });
         },
         error: function () {