i trying work google play location updates android project.
i have set updateinterval locationrequests @ 5000 (5 seconds) , fastestinvertval @ 5000:
mlocationrequest = new locationrequest(); mlocationrequest.setinterval(5000); mlocationrequest.setfastestinterval(5000);
i thinking of getting rid of old code dealt time-stamps , calculating speed through getting difference between 2 times. i've been hesitant because though maybe updateinterval locationrequests inaccurate, , have large margins of error.
my question is:
is locationrequests' update interval accurate remove safeguards such time stamps? if so, approximate margin of error?
no. updateinterval fastest return new value. close. take twice that. take 100 times that. take 8 hours, if went inside. few gps chips going give new result more once every 30 seconds, @ least of last time checked. in short, use timestamps.
Comments
Post a Comment