距离滤波器使用

示例:

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

例如,在上面的上述示例代码中,小于 5 米的位置变化不会被发送到回调,而是被忽略。