From 93a5a7933d57348557216b13d426df3c8da401f4 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Fri, 11 Jul 2014 18:48:08 +0200 Subject: [PATCH] Don't use uturn in services --- .../src/net/osmand/router/RouteResultPreparation.java | 5 +++++ .../src/net/osmand/plus/download/DownloadActivityType.java | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/OsmAnd-java/src/net/osmand/router/RouteResultPreparation.java b/OsmAnd-java/src/net/osmand/router/RouteResultPreparation.java index 5eb81d303e..4b8249743f 100644 --- a/OsmAnd-java/src/net/osmand/router/RouteResultPreparation.java +++ b/OsmAnd-java/src/net/osmand/router/RouteResultPreparation.java @@ -345,6 +345,11 @@ public class RouteResultPreparation { ut = false; } } + String highway = result.get(i).getObject().getHighway(); + if(highway == null || highway.endsWith("track") || highway.endsWith("services") || highway.endsWith("service") + || highway.endsWith("path")) { + ut = false; + } if (ut) { if (tl && TurnType.TL.equals(tnext.getValue())) { next = i + 2; diff --git a/OsmAnd/src/net/osmand/plus/download/DownloadActivityType.java b/OsmAnd/src/net/osmand/plus/download/DownloadActivityType.java index d58f50971f..431c026336 100644 --- a/OsmAnd/src/net/osmand/plus/download/DownloadActivityType.java +++ b/OsmAnd/src/net/osmand/plus/download/DownloadActivityType.java @@ -4,7 +4,6 @@ import static net.osmand.IndexConstants.BINARY_MAP_INDEX_EXT; import static net.osmand.IndexConstants.BINARY_SRTM_MAP_INDEX_EXT; import java.io.File; -import java.lang.reflect.Field; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; @@ -15,7 +14,6 @@ import net.osmand.AndroidUtils; import net.osmand.IndexConstants; import net.osmand.map.OsmandRegions; import net.osmand.plus.OsmandApplication; -import net.osmand.plus.OsmandSettings; import net.osmand.plus.R; import net.osmand.plus.Version; import net.osmand.plus.helpers.FileNameTranslationHelper;