@Override protected Path extractPath() { return new Path(graph, weighting). setWeight(currEdge.weight).setSPTEntry(currEdge).extract(); }
@Override protected Path extractPath() { if (currEdge == null || !finished()) return createEmptyPath(); return new Path(graph, weighting). setWeight(currEdge.weight).setSPTEntry(currEdge).extract(); }
Path path = new PathBidirRef(graph, weighting). setSPTEntryTo(toSPTEntry).setSPTEntry(fromSPTEntry). setWeight(weight); path.extract();
@Override protected Path extractPath() { return new Path(graph, flagEncoder).setWeight(currEdge.weight).setSPTEntry(currEdge).extract(); }
@Override protected Path extractPath() { return new Path(graph, weighting). setWeight(currEdge.weight).setSPTEntry(currEdge).extract(); }
@Override protected Path extractPath() { return new Path(graph, weighting). setWeight(currEdge.weight).setSPTEntry(currEdge).extract(); }
@Override protected Path extractPath() { if (currEdge == null || !finished()) return createEmptyPath(); return new Path(graph, weighting). setWeight(currEdge.weight).setSPTEntry(currEdge).extract(); }
@Override protected Path extractPath() { if (currEdge == null || !finished()) return createEmptyPath(); return new Path(graph, flagEncoder).setWeight(currEdge.weight).setSPTEntry(currEdge).extract(); }
@Override protected Path extractPath() { if (currEdge == null || !finished()) return createEmptyPath(); return new Path(graph, weighting). setWeight(currEdge.weight).setSPTEntry(currEdge).extract(); }
public Path extractPath(Collection<QueryResult> endQRs) { // pick QueryResult closest to last GPX entry // => prefer QueryResults close to the edge double bestWeight = Double.MAX_VALUE; for (QueryResult qr : endQRs) { int node = qr.getClosestNode(); SPTEntry tmp1 = fromMap.get(node); double w = weighting.getMinWeight(qr.getQueryDistance() * maxSearchWeightMultiplier); if (tmp1 != null && bestWeight > tmp1.weight + w) { currEdge = tmp1; bestWeight = tmp1.weight + w; } } return new Path(graph, flagEncoder).setWeight(currEdge.weight).setSPTEntry(currEdge).extract(); } }
setWeight(weight); path.extract();
Path path = new PathBidirRef(graph, weighting). setSPTEntryTo(toSPTEntry).setSPTEntry(fromSPTEntry). setWeight(weight); path.extract();
Path path = new PathBidirRef(graph, weighting). setSPTEntryTo(toSPTEntry).setSPTEntry(fromSPTEntry). setWeight(weight); path.extract();