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