| Modifier and Type | Method and Description |
|---|---|
Weighting |
GraphHopper.createWeighting(Profile profile,
PMap hints) |
Weighting |
GraphHopper.createWeighting(Profile profile,
PMap hints,
boolean disableTurnCosts) |
| Modifier and Type | Field and Description |
|---|---|
protected Weighting |
AbstractRoutingAlgorithm.weighting |
protected Weighting |
AbstractNonCHBidirAlgo.weighting |
| Modifier and Type | Method and Description |
|---|---|
Weighting |
WeightingFactory.createWeighting(Profile profile,
PMap hints,
boolean disableTurnCosts) |
Weighting |
DefaultWeightingFactory.createWeighting(Profile profile,
PMap requestHints,
boolean disableTurnCosts) |
Weighting |
AlgorithmOptions.getWeighting() |
| Modifier and Type | Method and Description |
|---|---|
static InstructionList |
InstructionsFromEdges.calcInstructions(Path path,
Graph graph,
Weighting weighting,
EncodedValueLookup evLookup,
Translation tr) |
protected BidirPathExtractor |
AbstractNonCHBidirAlgo.createPathExtractor(Graph graph,
Weighting weighting) |
static Path |
PathExtractor.extractPath(Graph graph,
Weighting weighting,
SPTEntry sptEntry) |
static Path |
BidirPathExtractor.extractPath(Graph graph,
Weighting weighting,
SPTEntry fwdEntry,
SPTEntry bwdEntry,
double weight) |
static WeightApproximator |
RoutingAlgorithmFactorySimple.getApproximation(String prop,
PMap opts,
Weighting weighting,
NodeAccess na) |
static List<Snap> |
ViaRouting.lookup(EncodedValueLookup lookup,
List<GHPoint> points,
Weighting weighting,
LocationIndex locationIndex,
List<String> snapPreventions,
List<String> pointHints) |
static List<Snap> |
RoundTripRouting.lookup(List<GHPoint> points,
Weighting weighting,
LocationIndex locationIndex,
RoundTripRouting.Params params) |
protected GHResponse |
Router.routeAlt(GHRequest request,
AlgorithmOptions algoOpts,
Weighting weighting,
Profile profile,
boolean passThrough,
boolean forceCurbsides,
boolean disableCH,
boolean disableLM) |
protected GHResponse |
Router.routeRoundTrip(GHRequest request,
AlgorithmOptions algoOpts,
Weighting weighting,
Profile profile,
boolean disableLM) |
protected GHResponse |
Router.routeVia(GHRequest request,
AlgorithmOptions algoOpts,
Weighting weighting,
Profile profile,
boolean passThrough,
boolean forceCurbsides,
boolean disableCH,
boolean disableLM) |
AlgorithmOptions.Builder |
AlgorithmOptions.Builder.weighting(Weighting weighting) |
| Modifier and Type | Method and Description |
|---|---|
Weighting |
PrepareContractionHierarchies.getWeighting() |
| Modifier and Type | Method and Description |
|---|---|
static void |
CHPreparationGraph.buildFromGraph(CHPreparationGraph prepareGraph,
Graph graph,
Weighting weighting) |
static CHPreparationGraph.TurnCostFunction |
CHPreparationGraph.buildTurnCostFunctionFromTurnCostStorage(Graph graph,
Weighting weighting)
Builds a turn cost function for a given graph('s turn cost storage) and a weighting.
|
| Modifier and Type | Method and Description |
|---|---|
Weighting |
LandmarkStorage.getLmSelectionWeighting() |
Weighting |
LandmarkStorage.getWeighting()
This method returns the weighting for which the landmarks are originally created
|
Weighting |
LMConfig.getWeighting() |
| Modifier and Type | Method and Description |
|---|---|
void |
LandmarkStorage.setLMSelectionWeighting(Weighting lmSelectionWeighting)
This weighting is used for the selection heuristic and is per default not the weighting specified in the constructor.
|
void |
PrepareLandmarks.setLMSelectionWeighting(Weighting w) |
| Constructor and Description |
|---|
LMApproximator(Graph graph,
Weighting weighting,
int maxBaseNodes,
LandmarkStorage lms,
int activeCount,
double factor,
boolean reverse) |
LMConfig(String profileName,
Weighting weighting) |
PerfectApproximator(Graph graph,
Weighting weighting,
TraversalMode traversalMode,
boolean reverse) |
| Modifier and Type | Method and Description |
|---|---|
Weighting |
QueryRoutingCHGraph.getWeighting() |
Weighting |
QueryGraph.wrapWeighting(Weighting weighting) |
| Modifier and Type | Method and Description |
|---|---|
Weighting |
QueryGraph.wrapWeighting(Weighting weighting) |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractAdjustedWeighting
The AdjustedWeighting wraps another Weighting.
|
class |
AbstractWeighting |
class |
AvoidEdgesWeighting
Increases the weight for a certain set of edges by a given factor and thus makes them less likely to be part of
a shortest path
|
class |
BlockAreaWeighting
This weighting is a wrapper for every weighting to support block_area
|
class |
CurvatureWeighting
This Class uses bendiness parameter to prefer curvy routes.
|
class |
FastestWeighting
Calculates the fastest route with the specified vehicle (VehicleEncoder).
|
class |
PriorityWeighting
Special weighting for (motor)bike
|
class |
QueryGraphWeighting
Whenever a
QueryGraph is used for shortest path calculations including turn costs we need to wrap the
Weighting we want to use with this class. |
class |
ShortestWeighting
Calculates the shortest route - independent of a vehicle as the calculation is based on the
distance only.
|
class |
ShortFastestWeighting
Calculates the fastest route with distance influence controlled by a new parameter.
|
| Modifier and Type | Field and Description |
|---|---|
protected Weighting |
AbstractAdjustedWeighting.superWeighting |
| Constructor and Description |
|---|
AbstractAdjustedWeighting(Weighting superWeighting) |
AvoidEdgesWeighting(Weighting superWeighting) |
BeelineWeightApproximator(NodeAccess nodeAccess,
Weighting weighting) |
BlockAreaWeighting(Weighting superWeighting,
GraphEdgeIdFinder.BlockArea blockArea) |
QueryGraphWeighting(Weighting weighting,
int firstVirtualNodeId,
int firstVirtualEdgeId,
com.carrotsearch.hppc.IntArrayList closestEdges) |
| Modifier and Type | Class and Description |
|---|---|
class |
CustomWeighting
The CustomWeighting allows adjusting the edge weights relative to those we'd obtain for a given base flag encoder.
|
| Modifier and Type | Method and Description |
|---|---|
Weighting |
RoutingCHGraph.getWeighting() |
Weighting |
RoutingCHGraphImpl.getWeighting() |
Weighting |
CHConfig.getWeighting() |
Weighting |
GraphHopperStorage.wrapWeighting(Weighting weighting) |
Weighting |
Graph.wrapWeighting(Weighting weighting)
Wraps the given weighting into a weighting that can be used by this graph
|
| Modifier and Type | Method and Description |
|---|---|
static CHConfig |
CHConfig.edgeBased(String chGraphName,
Weighting weighting) |
static RoutingCHEdgeIteratorImpl |
RoutingCHEdgeIteratorImpl.inEdges(EdgeExplorer edgeExplorer,
Weighting weighting) |
static CHConfig |
CHConfig.nodeBased(String chGraphName,
Weighting weighting) |
static RoutingCHEdgeIteratorImpl |
RoutingCHEdgeIteratorImpl.outEdges(EdgeExplorer edgeExplorer,
Weighting weighting) |
Weighting |
GraphHopperStorage.wrapWeighting(Weighting weighting) |
Weighting |
Graph.wrapWeighting(Weighting weighting)
Wraps the given weighting into a weighting that can be used by this graph
|
| Constructor and Description |
|---|
CHConfig(String chGraphName,
Weighting weighting,
boolean edgeBased) |
RoutingCHEdgeIteratorImpl(EdgeExplorer edgeExplorer,
Weighting weighting,
ShortcutFilter shortcutFilter) |
RoutingCHEdgeIteratorStateImpl(EdgeIteratorState edgeState,
Weighting weighting) |
| Modifier and Type | Method and Description |
|---|---|
static long |
GHUtility.calcMillisWithTurnMillis(Weighting weighting,
EdgeIteratorState edgeState,
boolean reverse,
int prevOrNextEdgeId) |
static double |
GHUtility.calcWeightWithTurnWeight(Weighting weighting,
EdgeIteratorState edgeState,
boolean reverse,
int prevOrNextEdgeId)
Calculates the weight of a given edge like
calcEdgeWeight(com.graphhopper.util.EdgeIteratorState, boolean) and adds the transition
cost (the turn weight, calcTurnWeight(int, int, int)) associated with transitioning from/to the edge with ID prevOrNextEdgeId. |
| Constructor and Description |
|---|
PathMerger(Graph graph,
Weighting weighting) |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,List<PathDetail>> |
PathDetailsFromEdges.calcDetails(Path path,
EncodedValueLookup evLookup,
Weighting weighting,
List<String> requestedPathDetails,
PathDetailsBuilderFactory pathBuilderFactory,
int previousIndex)
Calculates the PathDetails for a Path.
|
List<PathDetailsBuilder> |
PathDetailsBuilderFactory.createPathDetailsBuilders(List<String> requestedPathDetails,
EncodedValueLookup evl,
Weighting weighting) |
| Constructor and Description |
|---|
AverageSpeedDetails(Weighting weighting) |
AverageSpeedDetails(Weighting weighting,
double precision) |
TimeDetails(Weighting weighting) |
WeightDetails(Weighting weighting) |
Copyright © 2012–2021. All rights reserved.