From 07055d6faa2de410d784e5e6aa8f6bb521c1be22 Mon Sep 17 00:00:00 2001 From: xmd5a Date: Sun, 26 Feb 2017 18:52:56 +0300 Subject: [PATCH] Add slope to route.gpx --- OsmAnd-java/src/net/osmand/router/RouteResultPreparation.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OsmAnd-java/src/net/osmand/router/RouteResultPreparation.java b/OsmAnd-java/src/net/osmand/router/RouteResultPreparation.java index 600b098e5a..5e67ccc1bc 100644 --- a/OsmAnd-java/src/net/osmand/router/RouteResultPreparation.java +++ b/OsmAnd-java/src/net/osmand/router/RouteResultPreparation.java @@ -419,6 +419,9 @@ public class RouteResultPreparation { " asc " + (float) (h -lastHeight) + " dist " + (float) dist); serializer.endTag("","cmt"); + serializer.startTag("","slope"); + serializer.text((h -lastHeight)/ dist*100 + ""); + serializer.endTag("","slope"); } serializer.startTag("","desc"); serializer.text((res.getObject().getId() >> (BinaryInspector.SHIFT_ID )) + " " + index);