elevation in locus waypoints
This commit is contained in:
parent
8609c1f47b
commit
8369e8d3f3
2 changed files with 3 additions and 0 deletions
|
@ -362,6 +362,7 @@ public final class OsmTrack
|
||||||
{
|
{
|
||||||
sb.append( " <wpt lon=\"" ).append( formatILon( hint.ilon ) ).append( "\" lat=\"" )
|
sb.append( " <wpt lon=\"" ).append( formatILon( hint.ilon ) ).append( "\" lat=\"" )
|
||||||
.append( formatILat( hint.ilat ) ).append( "\">" )
|
.append( formatILat( hint.ilat ) ).append( "\">" )
|
||||||
|
.append( hint.selev == Short.MIN_VALUE ? "" : "<ele>" + (hint.selev / 4.) + "</ele>" )
|
||||||
.append( "<name>" ).append( hint.getMessageString() ).append( "</name>" )
|
.append( "<name>" ).append( hint.getMessageString() ).append( "</name>" )
|
||||||
.append( "<extensions><locus:rteDistance>" ).append( hint.distanceToNext ).append( "</locus:rteDistance>" )
|
.append( "<extensions><locus:rteDistance>" ).append( hint.distanceToNext ).append( "</locus:rteDistance>" )
|
||||||
.append( "<locus:rtePointAction>" ).append( hint.getLocusAction() ).append( "</locus:rtePointAction></extensions>" )
|
.append( "<locus:rtePointAction>" ).append( hint.getLocusAction() ).append( "</locus:rtePointAction></extensions>" )
|
||||||
|
@ -657,6 +658,7 @@ public final class OsmTrack
|
||||||
inputs.add( input );
|
inputs.add( input );
|
||||||
input.ilat = node.origin.getILat();
|
input.ilat = node.origin.getILat();
|
||||||
input.ilon = node.origin.getILon();
|
input.ilon = node.origin.getILon();
|
||||||
|
input.selev = node.origin.getSElev();
|
||||||
input.indexInTrack = --nodeNr;
|
input.indexInTrack = --nodeNr;
|
||||||
input.goodWay = node.message;
|
input.goodWay = node.message;
|
||||||
input.oldWay = node.origin.message == null ? node.message : node.origin.message;
|
input.oldWay = node.origin.message == null ? node.message : node.origin.message;
|
||||||
|
|
|
@ -28,6 +28,7 @@ public class VoiceHint
|
||||||
|
|
||||||
int ilon;
|
int ilon;
|
||||||
int ilat;
|
int ilat;
|
||||||
|
short selev;
|
||||||
int cmd;
|
int cmd;
|
||||||
MessageData oldWay;
|
MessageData oldWay;
|
||||||
MessageData goodWay;
|
MessageData goodWay;
|
||||||
|
|
Loading…
Reference in a new issue