]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/directions/graphhopper.js
Add Ascend/Descend when routing with GraphHopper
[rails.git] / app / assets / javascripts / index / directions / graphhopper.js
index 88a9c15c1215b00ae19ba6a7373eb88dff1efd7c..71161c59132ca2370d7e543c0c91e21e4789a442 100644 (file)
@@ -62,7 +62,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 () {