native pt by default

increase missing stop search radius
This commit is contained in:
MadWasp79 2020-06-10 15:07:26 +03:00
parent 25218bc9a0
commit 93467f3524
2 changed files with 6 additions and 2 deletions

View file

@ -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<TransportRoute> combinedRoutesCache = new TLongObjectHashMap<TransportRoute>();
Map<BinaryMapIndexReader, TIntObjectHashMap<TransportRoute>> routesFilesCache = new LinkedHashMap<BinaryMapIndexReader,
TIntObjectHashMap<TransportRoute>>();
@ -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;
}

View file

@ -3791,7 +3791,7 @@ public class OsmandSettings {
// this value string is synchronized with settings_pref.xml preference name
public final OsmandPreference<Boolean> SAFE_MODE = new BooleanPreference("safe_mode", false).makeGlobal();
public final OsmandPreference<Boolean> PT_SAFE_MODE = new BooleanPreference("pt_safe_mode", true).makeGlobal();
public final OsmandPreference<Boolean> PT_SAFE_MODE = new BooleanPreference("pt_safe_mode", false).makeGlobal();
public final OsmandPreference<Boolean> NATIVE_RENDERING_FAILED = new BooleanPreference("native_rendering_failed_init", false).makeGlobal();
public final OsmandPreference<Boolean> USE_OPENGL_RENDER = new BooleanPreference("use_opengl_render",