Package com.graphhopper.routing.ev
Class MaxSpeed
java.lang.Object
com.graphhopper.routing.ev.MaxSpeed
This EncodedValue stores maximum speed values for car in km/h. If not initialized it returns UNSET_SPEED.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final double
The speed value used for "none" speed limit on German Autobahn is 150=30*5 as this is the biggest value not explicitly used in OSM and can be precisely returned for a factor of 5, 3, 2 and 1.static final double
The speed value used for road sections without known speed limit. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
KEY
- See Also:
-
UNLIMITED_SIGN_SPEED
public static final double UNLIMITED_SIGN_SPEEDThe speed value used for "none" speed limit on German Autobahn is 150=30*5 as this is the biggest value not explicitly used in OSM and can be precisely returned for a factor of 5, 3, 2 and 1. It is fixed and not DecimalEncodedValue.getMaxInt to allow special case handling.- See Also:
-
UNSET_SPEED
public static final double UNSET_SPEEDThe speed value used for road sections without known speed limit.- See Also:
-
-
Constructor Details
-
MaxSpeed
public MaxSpeed()
-
-
Method Details
-
create
-