fix read routes

This commit is contained in:
MadWasp79 2020-06-17 20:42:30 +03:00
parent b7c42d47b0
commit ec73ca835f
2 changed files with 3 additions and 2 deletions

View file

@ -496,7 +496,7 @@ public class BinaryMapIndexReader {
} }
} }
Iterator<Entry<TransportIndex, TIntArrayList>> it = groupPoints.entrySet().iterator(); Iterator<Entry<TransportIndex, TIntArrayList>> it = groupPoints.entrySet().iterator();
if (it.hasNext()) { while (it.hasNext()) {
Entry<TransportIndex, TIntArrayList> e = it.next(); Entry<TransportIndex, TIntArrayList> e = it.next();
TransportIndex ind = e.getKey(); TransportIndex ind = e.getKey();
TIntArrayList pointers = e.getValue(); TIntArrayList pointers = e.getValue();

View file

@ -23,7 +23,7 @@ import net.osmand.osm.edit.Way;
import net.osmand.util.MapUtils; import net.osmand.util.MapUtils;
public class TransportStopsRouteReader { public class TransportStopsRouteReader {
public static final int MISSING_STOP_SEARCH_RADIUS = 30000; public static final int MISSING_STOP_SEARCH_RADIUS = 50000;
TLongObjectHashMap<TransportRoute> combinedRoutesCache = new TLongObjectHashMap<TransportRoute>(); TLongObjectHashMap<TransportRoute> combinedRoutesCache = new TLongObjectHashMap<TransportRoute>();
Map<BinaryMapIndexReader, TIntObjectHashMap<TransportRoute>> routesFilesCache = new LinkedHashMap<BinaryMapIndexReader, Map<BinaryMapIndexReader, TIntObjectHashMap<TransportRoute>> routesFilesCache = new LinkedHashMap<BinaryMapIndexReader,
TIntObjectHashMap<TransportRoute>>(); TIntObjectHashMap<TransportRoute>>();
@ -128,6 +128,7 @@ public class TransportStopsRouteReader {
} }
} }
} }
return routesToLoad; return routesToLoad;
} }