fix read routes
This commit is contained in:
parent
b7c42d47b0
commit
ec73ca835f
2 changed files with 3 additions and 2 deletions
|
@ -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();
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue