Originally posted by sgottscho
View Post
With a distance of 1 mile, it should work if you have sufficiently fast location updates and the min dist to move (for the user) set low enough so it will process the updates.
The 5 minutes is the time without any new position updates before resetting the direction device status to "Stopped". This will only happen if the status is something other than stopped.
When a new position comes in it calculates how far the user is from the home location and saves that value.
When the next position comes in, it uses the last saved "distance from home" and calculates if the user is closer or further away from home than the last update.
It keeps a count of the number of same direction updates so once 2 updates come in that are in the same direction it will change the status of the direction device.
If the count never gets to 2, e.g. the user moves away from home only 500 metres and then back again, the status will not change.
In your case, if you have say a 2 minute update interval (with a min dist to move of say 0.2 miles), then it should be changing status on your 1 mile trip.
Paul..
Comment