Package com.graphhopper.util
Class TurnCostsConfig
java.lang.Object
com.graphhopper.util.TurnCostsConfig
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTurnCostsConfig(List<String> vehicleTypes) TurnCostsConfig(List<String> vehicleTypes, int uTurnCost) -
Method Summary
Modifier and TypeMethodDescriptionstatic TurnCostsConfigbike()static TurnCostsConfigcar()intbooleansetAllowTurnPenaltyInRequest(boolean allowTurnPenaltyInRequest) setUTurnCosts(int uTurnCosts) setVehicleTypes(List<String> vehicleTypes) toString()
-
Field Details
-
INFINITE_U_TURN_COSTS
public static final int INFINITE_U_TURN_COSTS- See Also:
-
-
Constructor Details
-
TurnCostsConfig
public TurnCostsConfig() -
TurnCostsConfig
-
TurnCostsConfig
-
TurnCostsConfig
-
-
Method Details
-
car
-
bike
-
setVehicleTypes
-
getVehicleTypes
-
setUTurnCosts
- Parameters:
uTurnCosts- the costs of an u-turn in seconds, forINFINITE_U_TURN_COSTSthe u-turn costs will be infinite
-
isAllowTurnPenaltyInRequest
public boolean isAllowTurnPenaltyInRequest() -
setAllowTurnPenaltyInRequest
-
getUTurnCosts
public int getUTurnCosts() -
toString
-