Class OSMMaxSpeedParser
java.lang.Object
com.graphhopper.routing.util.parsers.OSMMaxSpeedParser
- All Implemented Interfaces:
TagParser
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doubleSpecial value to represent `maxspeed=none` internally, not exposed via the maxspeed encoded value -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleWayTags(int edgeId, EdgeIntAccess edgeIntAccess, ReaderWay way, IntsRef relationFlags) static doubleparseMaxSpeed(ReaderWay way, boolean reverse) static double
-
Field Details
-
MAXSPEED_NONE
public static final double MAXSPEED_NONESpecial value to represent `maxspeed=none` internally, not exposed via the maxspeed encoded value- See Also:
-
-
Constructor Details
-
OSMMaxSpeedParser
-
-
Method Details
-
handleWayTags
public void handleWayTags(int edgeId, EdgeIntAccess edgeIntAccess, ReaderWay way, IntsRef relationFlags) - Specified by:
handleWayTagsin interfaceTagParser
-
parseMaxSpeed
- Returns:
- The maxspeed for the given way. It can be anything between 0 and
, or
invalid reference
MaxSpeed.MAXSPEED_150in case there is no valid maxspeed tagged for this way in this direction.invalid reference
MaxSpeed.MAXSPEED_MISSING
-
parseMaxspeedString
- Returns:
- the speed in km/h, or
if the string is invalid, or
invalid reference
MAXSPEED_MISSINGMAXSPEED_NONEin case it equals 'none'
-