iOS Distance Filter using

Example

Example :

   CLLocationManager *locationManager = [[CLLocationManager alloc] init];
   locationManager.delegate = self;
   locationManager.desiredAccuracy = kCLLocationAccuracyBest;
   locationManager.distanceFilter = 5;

E.g. In the above example code above, location changes of less than 5 metres won’t be sent to the callback, but instead be ignored.