No startpoint-saving for now

This commit is contained in:
sonora 2016-08-06 22:14:47 +02:00
parent a74c1a2549
commit 0edd82d158

View file

@ -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);