No startpoint-saving for now
This commit is contained in:
parent
a74c1a2549
commit
0edd82d158
1 changed files with 8 additions and 7 deletions
|
@ -1045,13 +1045,14 @@ public class RouteProvider {
|
||||||
int cDirInfo = currentDirectionInfo;
|
int cDirInfo = currentDirectionInfo;
|
||||||
|
|
||||||
//saving start point to gpx file
|
//saving start point to gpx file
|
||||||
WptPt startpoint = new WptPt();
|
// This causes all offsets to be wrong by 1. Also: start point seems already present in file.
|
||||||
TargetPoint sc = helper.getPointToStart();
|
// WptPt startpoint = new WptPt();
|
||||||
if (sc != null){
|
// TargetPoint sc = helper.getPointToStart();
|
||||||
startpoint.lon = sc.getLongitude();
|
// if (sc != null){
|
||||||
startpoint.lat = sc.getLatitude();
|
// startpoint.lon = sc.getLongitude();
|
||||||
trkSegment.points.add(startpoint);
|
// startpoint.lat = sc.getLatitude();
|
||||||
}
|
// trkSegment.points.add(startpoint);
|
||||||
|
// }
|
||||||
|
|
||||||
for (int i = cRoute; i< routeNodes.size(); i++) {
|
for (int i = cRoute; i< routeNodes.size(); i++) {
|
||||||
Location loc = routeNodes.get(i);
|
Location loc = routeNodes.get(i);
|
||||||
|
|
Loading…
Reference in a new issue