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, isRightTurn
public SimpleIntersectionTraversalCostModel()
public double computeTraversalCost(IntersectionVertex v, StreetEdge from, StreetEdge to, TraverseMode mode, RoutingRequest options, float fromSpeed, float toSpeed)
IntersectionTraversalCostModel
computeTraversalCost
in interface IntersectionTraversalCostModel
computeTraversalCost
in class AbstractIntersectionTraversalCostModel
Copyright © 2019. All rights reserved.