private void initCHAlgoFactoryDecorator() { if (!chFactoryDecorator.hasWeightings()) { for (FlagEncoder encoder : encodingManager.fetchEdgeEncoders()) { for (String chWeightingStr : chFactoryDecorator.getWeightingsAsStrings()) { // ghStorage is null at this point Weighting weighting = createWeighting(new HintsMap(chWeightingStr), encoder, null); chFactoryDecorator.addWeighting(weighting); } } } }
private void initLMAlgoFactoryDecorator() { if (lmFactoryDecorator.hasWeightings()) return; for (FlagEncoder encoder : encodingManager.fetchEdgeEncoders()) { for (String lmWeightingStr : lmFactoryDecorator.getWeightingsAsStrings()) { Weighting weighting = createWeighting(new HintsMap(lmWeightingStr), encoder, null); lmFactoryDecorator.addWeighting(weighting); } } }
RouteResource.initHints(hintsMap, uriInfo.getQueryParameters()); Weighting weighting = graphHopper.createWeighting(hintsMap, encoder, graph); Isochrone isochrone = new Isochrone(queryGraph, weighting, reverseFlow);
queryGraph = new QueryGraph(ghStorage); queryGraph.lookup(qResults); weighting = createWeighting(hints, encoder, queryGraph); ghRsp.addDebugInfo("tmode:" + tMode.toString());
weighting = hopper.createWeighting(map, encoder, graph); final RoutingAlgorithmFactory tmpFactory = hopper.getAlgorithmFactory(map); algoFactory = new RoutingAlgorithmFactory() {
Weighting weighting = hopper.createWeighting(hints, encoder, hopper.getGraphHopperStorage());
private void initCHAlgoFactoryDecorator() { if (!chFactoryDecorator.hasWeightings()) { for (FlagEncoder encoder : encodingManager.fetchEdgeEncoders()) { for (String chWeightingStr : chFactoryDecorator.getWeightingsAsStrings()) { // ghStorage is null at this point Weighting weighting = createWeighting(new HintsMap(chWeightingStr), encoder, null); chFactoryDecorator.addWeighting(weighting); } } } }
private void initLMAlgoFactoryDecorator() { if (lmFactoryDecorator.hasWeightings()) return; for (FlagEncoder encoder : encodingManager.fetchEdgeEncoders()) { for (String lmWeightingStr : lmFactoryDecorator.getWeightingsAsStrings()) { Weighting weighting = createWeighting(new HintsMap(lmWeightingStr), encoder, null); lmFactoryDecorator.addWeighting(weighting); } } }
private void initCHAlgoFactoryDecorator() { if (!chFactoryDecorator.hasWeightings()) for (FlagEncoder encoder : encodingManager.fetchEdgeEncoders()) { for (String chWeightingStr : chFactoryDecorator.getWeightingsAsStrings()) { Weighting weighting = createWeighting(new HintsMap(chWeightingStr), encoder); chFactoryDecorator.addWeighting(weighting); } } }
private void initCHAlgoFactoryDecorator() { if (!chFactoryDecorator.hasWeightings()) { for (FlagEncoder encoder : encodingManager.fetchEdgeEncoders()) { for (String chWeightingStr : chFactoryDecorator.getWeightingsAsStrings()) { Weighting weighting = createWeighting(new HintsMap(chWeightingStr), encoder, null); chFactoryDecorator.addWeighting(weighting); } } } }
private void initLMAlgoFactoryDecorator() { if (lmFactoryDecorator.hasWeightings()) return; for (FlagEncoder encoder : encodingManager.fetchEdgeEncoders()) { for (String lmWeightingStr : lmFactoryDecorator.getWeightingsAsStrings()) { Weighting weighting = createWeighting(new HintsMap(lmWeightingStr), encoder, null); lmFactoryDecorator.addWeighting(weighting); } } }
queryGraph = new QueryGraph(ghStorage); queryGraph.lookup(qResults); weighting = createWeighting(hints, encoder, queryGraph); ghRsp.addDebugInfo("tmode:" + tMode.toString());
queryGraph = new QueryGraph(ghStorage); queryGraph.lookup(qResults); weighting = createWeighting(hints, encoder, queryGraph); ghRsp.addDebugInfo("tmode:" + tMode.toString());
weighting = createWeighting(hints, encoder);