objective c - distanceFilter property use -


in cllocationmanager class documentation, find such explanation distancefilter property:

this property used in conjunction standard location services , not used when monitoring significant location changes.

can please explain it?

in cllocationmanager, distancefilter used notify changes when device has moved x meters. default value kcldistancefilternone: movements reported.

from docs

after returning current location fix, receiver generates update events when significant change in user’s location detected. example, might generate new event when device becomes associated different cell tower. not rely on value in distancefilter property generate events.

start standard location services calling startupdatinglocation method. service appropriate applications need more fine-grained control on delivery of location events. specifically, takes account values in desiredaccuracy , distancefilter property determine when deliver new events. precision of standard location services needed navigation applications or application high-precision location data or regular stream of updates required. however, these services typically require location-tracking hardware enabled longer periods of time, can result in higher power usage.

that why distancefilter used in conjunction standard location services , not used when monitoring significant location changes eg. desiredaccuracy or heading info.

this because not useful know person has moved x meters. however, valuable know person has moved x meters in y heading z accuracy.


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -