Skip to content

LocationFilterReason

export const LocationFilterReason = {

Reason a location was rejected by the tracking location-filter, delivered to BackgroundGeolocation.onLocationFilter via LocationFilterEvent.reason.

Value Reason
"low-accuracy" Horizontal accuracy was worse than LocationFilter.trackingAccuracyThreshold.
"implied-speed" Implied speed between samples exceeded the plausible maximum (likely a GPS spike).
"outlier-capped" Sample was a statistical outlier well beyond the expected travel distance.
"geofence-spurious-exit" A geofence EXIT trigger was rejected — GPS jitter while stationary, an implausibly distant trigger, or no recorded-path evidence that the fence was ever transited. See LocationFilterEvent.geofence.
"geofence-duplicate-enter" A geofence ENTER trigger was rejected because the SDK already holds the fence in the entered state. See LocationFilterEvent.geofence.

Members

GeofenceDuplicateEnter

GeofenceDuplicateEnter: 'geofence-duplicate-enter',

A geofence ENTER trigger was rejected because the SDK already holds the fence in the entered state. LocationFilterEvent.geofence identifies the fence.

GeofenceSpuriousExit

GeofenceSpuriousExit: 'geofence-spurious-exit',

A geofence EXIT trigger was rejected — GPS jitter while stationary, an implausibly distant trigger, or no recorded-path evidence that the fence was ever transited. LocationFilterEvent.geofence identifies the fence and carries the verdict detail.

ImpliedSpeed

ImpliedSpeed: 'implied-speed',

Implied speed between samples exceeded the plausible maximum (likely a GPS spike).

LowAccuracy

LowAccuracy: 'low-accuracy',

Horizontal accuracy was worse than LocationFilter.trackingAccuracyThreshold.

OutlierCapped

OutlierCapped: 'outlier-capped'

Sample was a statistical outlier well beyond the expected travel distance.