Package com.graphhopper.util.details
Class DecimalDetails
java.lang.Object
com.graphhopper.util.details.AbstractPathDetailsBuilder
com.graphhopper.util.details.DecimalDetails
- All Implemented Interfaces:
PathDetailsBuilder
-
Constructor Summary
ConstructorDescriptionDecimalDetails
(String name, DecimalEncodedValue ev) DecimalDetails
(String name, DecimalEncodedValue ev, String infinityJsonValue, double precision) -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
The value of the Path at this moment, that should be stored in the PathDetail when calling startIntervalboolean
Methods inherited from class com.graphhopper.util.details.AbstractPathDetailsBuilder
build, endInterval, getName, startInterval, toString
-
Constructor Details
-
DecimalDetails
-
DecimalDetails
public DecimalDetails(String name, DecimalEncodedValue ev, String infinityJsonValue, double precision) - Parameters:
infinityJsonValue
- DecimalEncodedValue can return infinity as default value, but JSON cannot include this https://stackoverflow.com/a/9218955/194609 so we need a special string to handle this or null.precision
- e.g. 0.1 to avoid creating too many path details, i.e. round the speed to the specified precision * before detecting a change.
-
-
Method Details
-
getCurrentValue
Description copied from class:AbstractPathDetailsBuilder
The value of the Path at this moment, that should be stored in the PathDetail when calling startInterval- Specified by:
getCurrentValue
in classAbstractPathDetailsBuilder
-
isEdgeDifferentToLastEdge
-