Is geofence accuracy dependent on locationManager’s accuracy or distance filter? Or they are independent of each other because geofence is managed by the OS and uses Wifi/Cell tower info?
For example:
locationManager
locationManager.distanceFilter = 1250;
locationManager.desiredAccuracy = kCLLocationAccuracyKilometer;
region
let title = "Lorrenzillo's"
let coordinate = CLLocationCoordinate2DMake(37.703026, -121.759735)
let regionRadius = 550.0
let region = CLCircularRegion(center: CLLocationCoordinate2D(latitude: coordinate.latitude,
longitude: coordinate.longitude), radius: regionRadius, identifier: title)
The 550
(radius) is less than kCLLocationAccuracyKilometer
...so would the geofence trigger as expected?
From what I understand the distanceFilter
has no effect on the geofence’s accuracy.
I’m just not sure if the desiredAccuracy
of the manager would affect geofence’s accuracy.