Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is the difference between distanceFilter and desiredAccuracy of CoreLocationManager?

what is the difference between distanceFilter and desiredAccuracy of CoreLocationManager. To get the current location updates do I need to set these two values?

like image 374
Dee Avatar asked Oct 24 '22 07:10

Dee


1 Answers

distanceFilter is how far the user must move, in order for a new location update to be issued by the system.

desiredAccuracy is how long the device will keep trying more and more accurate methods to get the current location. If you set this really high cell towers may be enough and it won't even wake up the GPS, saving battery.

like image 107
Kendall Helmstetter Gelner Avatar answered Nov 15 '22 03:11

Kendall Helmstetter Gelner