Add slope to route.gpx

This commit is contained in:
xmd5a 2017-02-26 18:52:56 +03:00
parent 254a81c673
commit 07055d6faa

View file

@ -419,6 +419,9 @@ public class RouteResultPreparation {
" asc " + (float) (h -lastHeight) + " dist " " asc " + (float) (h -lastHeight) + " dist "
+ (float) dist); + (float) dist);
serializer.endTag("","cmt"); serializer.endTag("","cmt");
serializer.startTag("","slope");
serializer.text((h -lastHeight)/ dist*100 + "");
serializer.endTag("","slope");
} }
serializer.startTag("","desc"); serializer.startTag("","desc");
serializer.text((res.getObject().getId() >> (BinaryInspector.SHIFT_ID )) + " " + index); serializer.text((res.getObject().getId() >> (BinaryInspector.SHIFT_ID )) + " " + index);