I'm wondering if setting the correct activityType after initializing CLLocationManager will make the location results more accurate.
locationManager = CLLocationManager()
locationManager.distanceFilter = 20
locationManager.activityType = .fitness
I'm wondering if setting the correct activityType after initializing CLLocationManager will make the location results more accurate.
locationManager = CLLocationManager()
locationManager.distanceFilter = 20
locationManager.activityType = .fitness
Yes it does. activityType determines how CoreLocation will handle raw location data before transferring it to the app.
Two main things that this effects are:
So, yes, this is a meaningful property.
Argun Tekant / DTS Engineer / Core Technologies
We experience a lot of "Map Matching" or "Snap to roads" lately. Is there a clear overview of which activityType or config should be used to avoid this?
We tried both otherNavigation and Other, however both of them will snap the GPS track to the nearest roads...
For tracking 4x4 off-track drives this is highly undesirable...