From 93467f35244821d8d782c099efc2ca70a4a24b52 Mon Sep 17 00:00:00 2001 From: MadWasp79 Date: Wed, 10 Jun 2020 15:07:26 +0300 Subject: [PATCH 1/2] native pt by default increase missing stop search radius --- .../java/net/osmand/router/TransportStopsRouteReader.java | 6 +++++- .../net/osmand/plus/settings/backend/OsmandSettings.java | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/OsmAnd-java/src/main/java/net/osmand/router/TransportStopsRouteReader.java b/OsmAnd-java/src/main/java/net/osmand/router/TransportStopsRouteReader.java index 63705e250b..2d0080fe7f 100644 --- a/OsmAnd-java/src/main/java/net/osmand/router/TransportStopsRouteReader.java +++ b/OsmAnd-java/src/main/java/net/osmand/router/TransportStopsRouteReader.java @@ -23,7 +23,7 @@ import net.osmand.osm.edit.Way; import net.osmand.util.MapUtils; public class TransportStopsRouteReader { - public static final int MISSING_STOP_SEARCH_RADIUS = 15000; + public static final int MISSING_STOP_SEARCH_RADIUS = 30000; TLongObjectHashMap combinedRoutesCache = new TLongObjectHashMap(); Map> routesFilesCache = new LinkedHashMap>(); @@ -163,6 +163,10 @@ public class TransportStopsRouteReader { if (c == null) { c = combineRoute(route); combinedRoutesCache.put(route.getId(), c); + System.out.println(String.format("\n>> Route name: %s, id:%d", c.getName(), c.getId())); + for (TransportStop s: c.getForwardStops()) { + System.out.println(String.format(">> >> >> Stop name: %s, id:%d", s.getName(), s.getId())); + } } return c; } diff --git a/OsmAnd/src/net/osmand/plus/settings/backend/OsmandSettings.java b/OsmAnd/src/net/osmand/plus/settings/backend/OsmandSettings.java index d81b241f53..a241f1c40e 100644 --- a/OsmAnd/src/net/osmand/plus/settings/backend/OsmandSettings.java +++ b/OsmAnd/src/net/osmand/plus/settings/backend/OsmandSettings.java @@ -3791,7 +3791,7 @@ public class OsmandSettings { // this value string is synchronized with settings_pref.xml preference name public final OsmandPreference SAFE_MODE = new BooleanPreference("safe_mode", false).makeGlobal(); - public final OsmandPreference PT_SAFE_MODE = new BooleanPreference("pt_safe_mode", true).makeGlobal(); + public final OsmandPreference PT_SAFE_MODE = new BooleanPreference("pt_safe_mode", false).makeGlobal(); public final OsmandPreference NATIVE_RENDERING_FAILED = new BooleanPreference("native_rendering_failed_init", false).makeGlobal(); public final OsmandPreference USE_OPENGL_RENDER = new BooleanPreference("use_opengl_render", From 37bd1a5b7af6b7e8673cfa9b4c42a1ed5df938af Mon Sep 17 00:00:00 2001 From: MadWasp79 Date: Wed, 10 Jun 2020 15:55:00 +0300 Subject: [PATCH 2/2] remove logs --- .../java/net/osmand/router/TransportStopsRouteReader.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/OsmAnd-java/src/main/java/net/osmand/router/TransportStopsRouteReader.java b/OsmAnd-java/src/main/java/net/osmand/router/TransportStopsRouteReader.java index 2d0080fe7f..616b66aa55 100644 --- a/OsmAnd-java/src/main/java/net/osmand/router/TransportStopsRouteReader.java +++ b/OsmAnd-java/src/main/java/net/osmand/router/TransportStopsRouteReader.java @@ -163,10 +163,6 @@ public class TransportStopsRouteReader { if (c == null) { c = combineRoute(route); combinedRoutesCache.put(route.getId(), c); - System.out.println(String.format("\n>> Route name: %s, id:%d", c.getName(), c.getId())); - for (TransportStop s: c.getForwardStops()) { - System.out.println(String.format(">> >> >> Stop name: %s, id:%d", s.getName(), s.getId())); - } } return c; }