Class OSMValueExtractor
java.lang.Object
com.graphhopper.routing.util.parsers.helpers.OSMValueExtractor
-
Method Summary
Modifier and TypeMethodDescriptionstatic doubleconditionalWeightToTons(String value) This parses the weight for a conditional value like "delivery @ (weight > 7.5)"static voidextractMeter(int edgeId, EdgeIntAccess edgeIntAccess, ReaderWay way, DecimalEncodedValue valueEncoder, List<String> keys) static voidextractTons(int edgeId, EdgeIntAccess edgeIntAccess, ReaderWay way, DecimalEncodedValue valueEncoder, List<String> keys) static booleanisInvalidValue(String value) static doublestringToKmh(String str) static doublestringToMeter(String value) static doublestringToTons(String value)
-
Method Details
-
extractTons
public static void extractTons(int edgeId, EdgeIntAccess edgeIntAccess, ReaderWay way, DecimalEncodedValue valueEncoder, List<String> keys) -
conditionalWeightToTons
This parses the weight for a conditional value like "delivery @ (weight > 7.5)" -
stringToTons
-
extractMeter
public static void extractMeter(int edgeId, EdgeIntAccess edgeIntAccess, ReaderWay way, DecimalEncodedValue valueEncoder, List<String> keys) -
stringToMeter
-
isInvalidValue
-
stringToKmh
- Returns:
- the speed in km/h
-