From 0670a382dfc38ac13a793b3d5a427e8f2185078a Mon Sep 17 00:00:00 2001 From: gulyasm Date: Thu, 16 Mar 2017 08:50:16 +0100 Subject: [PATCH 1/2] Adds ascend to route summary --- src/L.Routing.GraphHopper.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/L.Routing.GraphHopper.js b/src/L.Routing.GraphHopper.js index fdaaaae..eea5a0e 100644 --- a/src/L.Routing.GraphHopper.js +++ b/src/L.Routing.GraphHopper.js @@ -109,6 +109,7 @@ summary: { totalDistance: path.distance, totalTime: path.time / 1000, + totalAscend: path.ascend, }, inputWaypoints: inputWaypoints, actualWaypoints: mappedWaypoints.waypoints, From b7f88f464c89eb8bb49644a3979920b345798af3 Mon Sep 17 00:00:00 2001 From: gulyasm Date: Fri, 17 Mar 2017 08:59:28 +0100 Subject: [PATCH 2/2] Converts spaces to tabs for totalAscend. --- src/L.Routing.GraphHopper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/L.Routing.GraphHopper.js b/src/L.Routing.GraphHopper.js index eea5a0e..406a587 100644 --- a/src/L.Routing.GraphHopper.js +++ b/src/L.Routing.GraphHopper.js @@ -109,7 +109,7 @@ summary: { totalDistance: path.distance, totalTime: path.time / 1000, - totalAscend: path.ascend, + totalAscend: path.ascend, }, inputWaypoints: inputWaypoints, actualWaypoints: mappedWaypoints.waypoints,