LocationFilter class

GPS filtering and smoothing options.

Annotations

Constructors

LocationFilter({int? trackingAccuracyThreshold, int? maxImpliedSpeed, int? odometerAccuracyThreshold, LocationFilterPolicy? policy, bool? rejectMockLocations, int? mockDetectionLevel, bool? useKalmanFilter})
Creates a new LocationFilter with optional overrides.
const
LocationFilter.fromMap(Map<String, Object?> map)
Creates a LocationFilter from a map.
factory

Properties

hashCode → int
The hash code for this object.
no setteroverride
maxImpliedSpeed → int
Reject locations that imply a speed greater than this value (m/s).
no setter
mockDetectionLevel → int
Sensitivity level for custom mock detection.
no setter
odometerAccuracyThreshold → int
Only count locations with accuracy better than this value toward odometer.
no setter
policy → LocationFilterPolicy
How to handle rejected locations.
no setter
rejectMockLocations → bool
Reject locations flagged as mock by the OS.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
trackingAccuracyThreshold → int
Reject locations with accuracy worse than this value (meters).
no setter
useKalmanFilter → bool
Whether the Kalman filter is currently enabled for GPS smoothing.
no setter

Methods

mergedWith(LocationFilter other) → LocationFilter
Applies every field other explicitly supplied on top of this config, leaving fields other left unset as they are here.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolved() → LocationFilter
Returns this config with every field pinned to its effective value.
toMap() → Map<String, Object?>
Serializes to a map.
toString() → String
A string representation of this object.
inherited
toTlConfig() → TlLocationFilter
Converts to Pigeon TlLocationFilter.

Operators

operator ==(Object other) → bool
The equality operator.
override