Save only speakable dirInfos to OsmAnd route GPX

This commit is contained in:
sonora 2016-08-08 16:42:13 +02:00
parent 601a2f1866
commit 4c5e8536cf

View file

@ -1076,7 +1076,7 @@ public class RouteProvider {
gpx.routes.add(route); gpx.routes.add(route);
for (int i = cDirInfo; i < directionInfo.size(); i++) { for (int i = cDirInfo; i < directionInfo.size(); i++) {
RouteDirectionInfo dirInfo = directionInfo.get(i); RouteDirectionInfo dirInfo = directionInfo.get(i);
if (dirInfo.routePointOffset >= cRoute) { if (dirInfo.routePointOffset >= cRoute && dirInfo.getTurnType() != null && !dirInfo.getTurnType().isSkipToSpeak()) {
Location loc = routeNodes.get(dirInfo.routePointOffset); Location loc = routeNodes.get(dirInfo.routePointOffset);
WptPt pt = new WptPt(); WptPt pt = new WptPt();
pt.lat = loc.getLatitude(); pt.lat = loc.getLatitude();