Thursday, October 30, 2014

iOS Location Monitoring Accuracy values

When requesting for significant location changes, application can give the accuracy values using any of the constants below.


Below are the values and we will use kCLLocationAccuracyHundredMeters for WFF, 

extern const CLLocationAccuracy  kCLLocationAccuracyBestForNavigation;
extern const CLLocationAccuracy  kCLLocationAccuracyBest;
extern const CLLocationAccuracy  kCLLocationAccuracyNearestTenMeters;
extern const CLLocationAccuracy  kCLLocationAccuracyHundredMeters;
extern const CLLocationAccuracy  kCLLocationAccuracyKilometer;
extern const CLLocationAccuracy  kCLLocationAccuracyThreeKilometers;

Below given the tips for battery conservation, which is kCLLocationAccuracyThreeKilometers more efficient and kCLLocationAccuracyBestForNavigation worst in terms of battery. 

Also, when we get the location call back, we will use the horizontal accuracy to figure out the accuracy, along with the kCLLocationAccuracyHundredMeters. and we will check if the accuracy is < 400 to process further. 


References: 

No comments:

Post a Comment