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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final doubleThe 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 doubleThe speed value used for road sections without known speed limit. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
KEY
- See Also:
-
MAXSPEED_150
public static final double MAXSPEED_150The 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:
-
MAXSPEED_MISSING
public static final double MAXSPEED_MISSINGThe speed value used for road sections without known speed limit.- See Also:
-
-
Constructor Details
-
MaxSpeed
public MaxSpeed()
-
-
Method Details
-
create
-