iphone - What is the role of DesiredAcuracy and DistanceFilter in CoreLocation, ios -


i picking gps coordinates of user walks corelocation in ios project, want pick lats&longs every 1 meter or every 10 seconds ,

can use desiredacuracy , distancefilter so?

if not these 2 (desiredacuracy , distancefilter) do?

or should create own timer it?

can use desiredacuracy , distancefilter so? yes, according docs:

desiredacuracy

the receiver best achieve requested accuracy; however, actual accuracy not guaranteed.

you should assign value property appropriate usage scenario. example, if need current location within kilometer, should specify kcllocationaccuracykilometer , not kcllocationaccuracybestfornavigation. determining location greater accuracy requires more time , more power.

in case, should use kcllocationaccuracykilometer unplugged devices (for example. user uses run distances) or kcllocationaccuracybestfornavigation plugged in devices (for example, in car)

kcllocationaccuracybestfornavigation

use highest possible accuracy , combine additional sensor data. level of accuracy intended use in navigation applications require precise position information @ times , intended used while device plugged in.

kcllocationaccuracykilometer

accurate nearest kilometer. available in ios 2.0 , later.

kcllocationaccuracybest

use highest-level of accuracy. available in ios 2.0 , later.

distancefilter

this distance measured relative delivered location. >use value kcldistancefilternone notified of movements. default value of property kcldistancefilternone.

so, if need frequent distance updates (that is, how distance user must move receive update), should use kcldistancefilternone.


Comments