Class CustomWeightingHelper
java.lang.Object
com.graphhopper.routing.weighting.custom.CustomWeightingHelper
This class is for internal usage only. It is subclassed by Janino, then special expressions are
injected into init, getSpeed and getPriority. At the end an instance is created and used in CustomWeighting.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal double
final double
double
getPriority
(EdgeIteratorState edge, boolean reverse) protected final double
getRawPriority
(EdgeIteratorState edge, boolean reverse) protected final double
getRawSpeed
(EdgeIteratorState edge, boolean reverse) double
getSpeed
(EdgeIteratorState edge, boolean reverse) static boolean
in
(Polygon p, EdgeIteratorState edge) void
init
(CustomModel customModel, EncodedValueLookup lookup, Map<String, JsonFeature> areas)
-
Field Details
-
lookup
-
customModel
-
-
Constructor Details
-
CustomWeightingHelper
protected CustomWeightingHelper()
-
-
Method Details
-
init
-
getPriority
-
getSpeed
-
getRawSpeed
-
getRawPriority
-
calcMaxSpeed
public final double calcMaxSpeed() -
calcMaxPriority
public final double calcMaxPriority() -
in
-