Add % to gpx to test

This commit is contained in:
Victor Shcherb 2017-02-23 21:45:34 +01:00
parent 304a4c251c
commit 0e26d41fc1

View file

@ -414,7 +414,9 @@ public class RouteResultPreparation {
serializer.endTag("","ele");
if(lastHeight != -180 && dist > 0) {
serializer.startTag("","cmt");
serializer.text((float) ((h -lastHeight)/ dist) + "% " + " asc " + (float) (h -lastHeight) + " dist "
serializer.text((float) ((h -lastHeight)/ dist*100) + "% " +
" degree " + (float) Math.atan(((h -lastHeight)/ dist*100) / Math.PI * 180) +
" asc " + (float) (h -lastHeight) + " dist "
+ (float) dist);
serializer.endTag("","cmt");
}