From ff5bfe1cd2f0236f09eda4a4b8bbd2ae569b3430 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 8 Jul 2014 11:52:31 +0300 Subject: [PATCH] Fixed bug 2302 in google.code. Start location now also be saved in gpx. --- OsmAnd/src/net/osmand/plus/routing/RouteProvider.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/routing/RouteProvider.java b/OsmAnd/src/net/osmand/plus/routing/RouteProvider.java index c05f4af02d..ea0ca48abd 100644 --- a/OsmAnd/src/net/osmand/plus/routing/RouteProvider.java +++ b/OsmAnd/src/net/osmand/plus/routing/RouteProvider.java @@ -1011,7 +1011,16 @@ public class RouteProvider { track.segments.add(trkSegment); int cRoute = currentRoute; int cDirInfo = currentDirectionInfo; - + + //saving start point to gpx file + WptPt startpoint = new WptPt(); + LatLon 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); WptPt pt = new WptPt();