transistorsoft / flutter_background_geolocation

Sophisticated, battery-conscious background-geolocation & geofencing with motion-detection
https://www.transistorsoft.com/shop/products/flutter-background-geolocation
Other
646 stars 240 forks source link

question: how to get accurate information on whether the device has transitioned from moving to stop #1363

Open svanhoof opened 2 weeks ago

svanhoof commented 2 weeks ago

Your Environment

! Doctor found issues in 1 category.

Expected Behavior

For the application we are building we are mainly interested in the stop locations (and we want to know the device is actually stopped). We don't care too much about points recorded while the phone is moving. Ideally a stop is defined as having no motion (accelerometer driven) for a configurable seconds.

Actual Behavior

With the configuration above we do get all 'relevant' location points. When driving we do get correctly the last location point of the trip, however when cannot always reliably figure out that this is a stop. Our current logic is to look at a location of speed/activity/moving flag. However on this last location point:

Steps to Reproduce

At this moment just a behavioral question

Context

Debug logs

Logs ``` PASTE_YOUR_LOGS_HERE ```
christocracy commented 2 weeks ago

See api docs Config.stopTimeout and event .onMotionChange