public class SimpleIntersectionTraversalCostModel extends AbstractIntersectionTraversalCostModel implements Serializable
maxLeftTurnAngle, maxRightTurnAngle, minLeftTurnAngle, minRightTurnAngle, nonDrivingTurnCostFactor| Constructor and Description |
|---|
SimpleIntersectionTraversalCostModel() |
| Modifier and Type | Method and Description |
|---|---|
double |
computeTraversalCost(IntersectionVertex v,
StreetEdge from,
StreetEdge to,
TraverseMode mode,
RoutingRequest options,
float fromSpeed,
float toSpeed)
Compute the cost of turning onto "to" from "from".
|
calculateTurnAngle, computeNonDrivingTraversalCost, isLeftTurn, isRightTurnpublic SimpleIntersectionTraversalCostModel()
public double computeTraversalCost(IntersectionVertex v, StreetEdge from, StreetEdge to, TraverseMode mode, RoutingRequest options, float fromSpeed, float toSpeed)
IntersectionTraversalCostModelcomputeTraversalCost in interface IntersectionTraversalCostModelcomputeTraversalCost in class AbstractIntersectionTraversalCostModelCopyright © 2018. All rights reserved.