Skip to content
Permalink
Browse files
  • Loading branch information
ldeluca committed Jul 7, 2014
2 parents 43f4efa + 6d413ad commit b1e655b3084366cf39a209576f4663a87ec6ac99
Showing 1 changed file with 3 additions and 2 deletions.
@@ -132,8 +132,9 @@ - (void)startLocation:(BOOL)enableHighAccuracy
__locationStarted = YES;
if (enableHighAccuracy) {
__highAccuracyEnabled = YES;
// Set to distance filter to "none" - which should be the minimum for best results.
self.locationManager.distanceFilter = kCLDistanceFilterNone;
// Set distance filter to 5 for a high accuracy. Setting it to "kCLDistanceFilterNone" could provide a
// higher accuracy, but it's also just spamming the callback with useless reports which drain the battery.
self.locationManager.distanceFilter = 5;
// Set desired accuracy to Best.
self.locationManager.desiredAccuracy = kCLLocationAccuracyBest;
} else {

0 comments on commit b1e655b

Please sign in to comment.