Fixed bug 2302 in google.code. Start location now also be saved in gpx.
This commit is contained in:
parent
1873db5b27
commit
ff5bfe1cd2
1 changed files with 10 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue