@Override public LocationIndex provide() { return graphHopper.getLocationIndex(); }
LocationIndex locationIndex = graphHopper.getLocationIndex(); QueryResult qr = locationIndex.findClosest(point.lat, point.lon, edgeFilter); if (!qr.isValid())
GHBitSet allowedEdges = printGraphDetails(g, vehicleStr); printMiscUnitPerfTests(g, isCH, encoder, count * 100, allowedEdges); printLocationIndexQuery(g, hopper.getLocationIndex(), count); printTimeOfRouteQuery(hopper, isCH, isLM, count / 20, "routing", vehicleStr, true, -1, true);
this.index = (LocationIndexTree) hopper.getLocationIndex();
public static List<AlgoHelperEntry> createAlgos(final GraphHopper hopper, final HintsMap hints, TraversalMode tMode) { GraphHopperStorage ghStorage = hopper.getGraphHopperStorage(); LocationIndex idx = hopper.getLocationIndex();
public QueryResult createSnapToResult(double latitude, double longitude) { return hopper.getLocationIndex().findClosest(latitude, longitude, edgeFilter); }
LocationIndexTree locationIndex = (LocationIndexTree) graphHopper.getLocationIndex(); AlgorithmOptions algoOpts = AlgorithmOptions.start() .maxVisitedNodes((int) 1e20)
uTurnDistancePenalty = headingTimePenalty * PENALTY_CONVERSION_VELOCITY; this.locationIndex = (LocationIndexTree) graphHopper.getLocationIndex();
uTurnDistancePenalty = headingTimePenalty * PENALTY_CONVERSION_VELOCITY; this.locationIndex = (LocationIndexTree) graphHopper.getLocationIndex();
logger.info("Setup lookup index. Accuracy filter is at " + gpxAccuracy + "m"); LocationIndexMatch locationIndex = new LocationIndexMatch(graph, (LocationIndexTree) hopper.getLocationIndex(), gpxAccuracy); MapMatching mapMatching = new MapMatching(graph, locationIndex, firstEncoder); mapMatching.setSeparatedSearchDistance(args.getInt("separated_search_distance", 500));