Package com.graphhopper.util.details
Class AverageSpeedDetails
java.lang.Object
com.graphhopper.util.details.AbstractPathDetailsBuilder
com.graphhopper.util.details.AverageSpeedDetails
- All Implemented Interfaces:
PathDetailsBuilder
-
Constructor Summary
ConstructorsConstructorDescriptionAverageSpeedDetails
(Weighting weighting) AverageSpeedDetails
(Weighting weighting, 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
-
AverageSpeedDetails
-
AverageSpeedDetails
- Parameters:
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
-