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
|
@ -1012,6 +1012,15 @@ public class RouteProvider {
|
|||
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