Interface TurnCostProvider
- All Known Implementing Classes:
DefaultTurnCostProvider
public interface TurnCostProvider
Implementations of this interface define how turn costs and turn times are calculated.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionlong
calcTurnMillis
(int inEdge, int viaNode, int outEdge) double
calcTurnWeight
(int inEdge, int viaNode, int outEdge)
-
Field Details
-
NO_TURN_COST_PROVIDER
-
-
Method Details
-
calcTurnWeight
double calcTurnWeight(int inEdge, int viaNode, int outEdge) - Returns:
- the turn weight of a transitions from the edge with id to the edge with id at the node with id
-
calcTurnMillis
long calcTurnMillis(int inEdge, int viaNode, int outEdge) - Returns:
- the time it takes to take a turn in milli-seconds
- See Also:
-