public class AverageSpeedDetails extends AbstractPathDetailsBuilder
Constructor and Description |
---|
AverageSpeedDetails(Weighting weighting) |
AverageSpeedDetails(Weighting weighting,
double precision) |
Modifier and Type | Method and Description |
---|---|
protected Object |
getCurrentValue()
The value of the Path at this moment, that should be stored in the PathDetail when calling startInterval
|
boolean |
isEdgeDifferentToLastEdge(EdgeIteratorState edge) |
build, endInterval, getName, startInterval, toString
public AverageSpeedDetails(Weighting weighting)
public AverageSpeedDetails(Weighting weighting, double precision)
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.protected Object getCurrentValue()
AbstractPathDetailsBuilder
getCurrentValue
in class AbstractPathDetailsBuilder
public boolean isEdgeDifferentToLastEdge(EdgeIteratorState edge)
Copyright © 2012–2020. All rights reserved.