From 0edd82d158ecd54b44876695fccdbc2f82da21d8 Mon Sep 17 00:00:00 2001 From: sonora Date: Sat, 6 Aug 2016 22:14:47 +0200 Subject: [PATCH] No startpoint-saving for now --- .../net/osmand/plus/routing/RouteProvider.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/routing/RouteProvider.java b/OsmAnd/src/net/osmand/plus/routing/RouteProvider.java index c1170b2466..3e723d5dfb 100644 --- a/OsmAnd/src/net/osmand/plus/routing/RouteProvider.java +++ b/OsmAnd/src/net/osmand/plus/routing/RouteProvider.java @@ -1045,13 +1045,14 @@ public class RouteProvider { int cDirInfo = currentDirectionInfo; //saving start point to gpx file - WptPt startpoint = new WptPt(); - TargetPoint sc = helper.getPointToStart(); - if (sc != null){ - startpoint.lon = sc.getLongitude(); - startpoint.lat = sc.getLatitude(); - trkSegment.points.add(startpoint); - } +// This causes all offsets to be wrong by 1. Also: start point seems already present in file. +// WptPt startpoint = new WptPt(); +// TargetPoint sc = helper.getPointToStart(); +// if (sc != null){ +// startpoint.lon = sc.getLongitude(); +// startpoint.lat = sc.getLatitude(); +// trkSegment.points.add(startpoint); +// } for (int i = cRoute; i< routeNodes.size(); i++) { Location loc = routeNodes.get(i);