Adding an abs() around the distance.
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.

Juanjojara/cordova-plugin-background-geolocation,svennerberg/cordova-plugin-background-geolocation,huttj/cordova-plugin-background-geolocation,keesschollaart81/cordova-plugin-background-geolocation,tdenovan/cordova-plugin-background-geolocation,finchen/cordova-plugin-background-geolocation-1,hydrogennz/cordova-plugin-background-geolocation,parmod-arora/cordova-plugin-background-geolocation,Anthbs/cordova-plugin-background-geolocation,KL-Moment/cordova-plugin-background-geolocation,huttj/cordova-plugin-background-geolocation,danilab/cordova-plugin-background-geolocation-1,Anthbs/cordova-plugin-background-geolocation,huttj/cordova-plugin-background-geolocation,svennerberg/cordova-plugin-background-geolocation,KL-Moment/cordova-plugin-background-geolocation,imranw/cordova-plugin-background-geolocation,Anthbs/cordova-plugin-background-geolocation,KL-Moment/cordova-plugin-background-geolocation,ZenCity/cordova-plugin-background-geolocation,akserg/cordova-plugin-background-geolocation,bastian-meier/cordova-plugin-background-geolocation,huttj/cordova-plugin-background-geolocation,imranw/cordova-plugin-background-geolocation,tdenovan/cordova-plugin-background-geolocation,mauron85/cordova-plugin-background-geolocation,ZenCity/cordova-plugin-background-geolocation,mauron85/cordova-plugin-mauron85-background-geolocation-phonegapbuild,finchen/cordova-plugin-background-geolocation-1,tiangolo/cordova-plugin-background-geolocation,bastian-meier/cordova-plugin-background-geolocation,hydrogennz/cordova-plugin-background-geolocation,gkachru/cordova-plugin-background-geolocation,hydrogennz/cordova-plugin-background-geolocation,Anthbs/cordova-plugin-background-geolocation,finchen/cordova-plugin-background-geolocation-1,mauron85/cordova-plugin-background-geolocation,akserg/cordova-plugin-background-geolocation,parmod-arora/cordova-plugin-background-geolocation,AndresRojasIsaza/cordova-plugin-background-geolocation,GeoTob/cordova-plugin-background-geolocation,ZenCity/cordova-plugin-background-geolocation,ZenCity/cordova-plugin-background-geolocation,mauron85/cordova-plugin-mauron85-background-geolocation-phonegapbuild,svennerberg/cordova-plugin-background-geolocation,hydrogennz/cordova-plugin-background-geolocation,gkachru/cordova-plugin-background-geolocation,imranw/cordova-plugin-background-geolocation,danilab/cordova-plugin-background-geolocation-1,tiangolo/cordova-plugin-background-geolocation,danilab/cordova-plugin-background-geolocation-1,keesschollaart81/cordova-plugin-background-geolocation,parmod-arora/cordova-plugin-background-geolocation,parmod-arora/cordova-plugin-background-geolocation,tiangolo/cordova-plugin-background-geolocation,imranw/cordova-plugin-background-geolocation,tiangolo/cordova-plugin-background-geolocation,akserg/cordova-plugin-background-geolocation,KL-Moment/cordova-plugin-background-geolocation,redskyit/cordova-plugin-background-geolocation,Juanjojara/cordova-plugin-background-geolocation,tdenovan/cordova-plugin-background-geolocation,tdenovan/cordova-plugin-background-geolocation,mauron85/cordova-plugin-mauron85-background-geolocation-phonegapbuild,akserg/cordova-plugin-background-geolocation,Juanjojara/cordova-plugin-background-geolocation,AndresRojasIsaza/cordova-plugin-background-geolocation,AndresRojasIsaza/cordova-plugin-background-geolocation,keesschollaart81/cordova-plugin-background-geolocation,svennerberg/cordova-plugin-background-geolocation,GeoTob/cordova-plugin-background-geolocation,mauron85/cordova-plugin-background-geolocation,redskyit/cordova-plugin-background-geolocation,AndresRojasIsaza/cordova-plugin-background-geolocation,finchen/cordova-plugin-background-geolocation-1