LocationFilter class
Location filtering and denoising configuration.
Controls how raw GPS samples are processed before being recorded or used for odometer calculations. Helps eliminate noise, GPS spikes, and low-quality readings.
LocationFilter(
policy: LocationFilterPolicy.adjust,
maxImpliedSpeed: 60,
odometerAccuracyThreshold: 20,
trackingAccuracyThreshold: 100,
)
- Annotations
Constructors
- LocationFilter({LocationFilterPolicy policy = LocationFilterPolicy.adjust, int maxImpliedSpeed = 0, int odometerAccuracyThreshold = 0, int trackingAccuracyThreshold = 0})
-
Creates a new LocationFilter.
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
-
Max implied speed (m/s) between consecutive locations.
final
- odometerAccuracyThreshold → int
-
Minimum accuracy (in meters) a location must have to be counted
in odometer calculations. Defaults to
0(accept all).final - policy → LocationFilterPolicy
-
How the filter handles rejected locations.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- trackingAccuracyThreshold → int
-
Minimum accuracy (in meters) a location must have to be recorded.
Locations with worse accuracy are filtered. Defaults to
0(accept all).final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, Object?> - Serializes to a map.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override