PointMerger class

Tool for merging multiple points that are adjacent in space and time into a single stay of extended duration.

Make sure to call the close method after the last point added to PointMerger in order to report the last tracked stay as a merge result.

Constructors

PointMerger(void reportMergeResult(GpsStay), {int? maxTimeGapSeconds, double? maxDistanceGapMeters})

Properties

hashCode int
The hash code for this object.
no setterinherited
reportMergeResult → void Function(GpsStay)
Function that will be called once a merged item has been identified and finalized, typically the add() method of an output sink.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addPoint(GpsPoint point) → void
close() → void
Method to be called at the end of the processing, in order to make sure any last stay entity is reported as merge result as well.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited