From 4c5e8536cf35bc82db3f96d8a1fbbb48d6d5a358 Mon Sep 17 00:00:00 2001 From: sonora Date: Mon, 8 Aug 2016 16:42:13 +0200 Subject: [PATCH] Save only speakable dirInfos to OsmAnd route GPX --- OsmAnd/src/net/osmand/plus/routing/RouteProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/routing/RouteProvider.java b/OsmAnd/src/net/osmand/plus/routing/RouteProvider.java index cbca787657..204cd674f2 100644 --- a/OsmAnd/src/net/osmand/plus/routing/RouteProvider.java +++ b/OsmAnd/src/net/osmand/plus/routing/RouteProvider.java @@ -1076,7 +1076,7 @@ public class RouteProvider { gpx.routes.add(route); for (int i = cDirInfo; i < directionInfo.size(); 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); WptPt pt = new WptPt(); pt.lat = loc.getLatitude();