距離濾波器使用

示例:

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

例如,在上面的上述示例程式碼中,小於 5 米的位置變化不會被髮送到回撥,而是被忽略。