Adding an abs() around the distance.
I saw negative distances when I was inside the stationary area, but moving around within it.. perhaps a few houses over etc. Walking etc. If I moved farther away, it eventually updated but more becaue it had a significant update, such as driving miles. This abs around the distance allows the less-than if statement to work. Been using it for all day across several cities with great and accurate updates. Similar routines over the last few days were highly inaccurate and behind.
Showing
Please register or sign in to comment