desiredOdometerAccuracy property
The maximum location accuracy allowed for a location to be used for Location.odometer calculations.
Defaults to 100
. If a location arrives having accuracy > desiredOdometerAccuracy
, that location will not be used to update the odometer. If you only want to calculate odometer from GPS locations, you could set desiredOdometerAccuracy: 10
. This will prevent odometer updates when a device is moving around indoors, in a shopping mall, for example.
Implementation
double? desiredOdometerAccuracy;