Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


Sets the desired accuracy of the location data.

Component Version macOS Windows Linux Server iOS SDK
CoreLocation 2.7 ✅ Yes ❌ No ❌ No ❌ No ✅ Yes
MBS( "CoreLocation.setDesiredAccuracy"; Accuracy )   More


Parameter Description Example
Accuracy The new value. Can be a number or the folling text strings: Best, NearestTenMeters, HundredMeters, Kilometer and ThreeKilometers. Default is "best". 123


Returns OK or error.


Sets the desired accuracy of the location data.
The receiver does its best to achieve the requested accuracy; however, the actual accuracy is not guaranteed.
You should assign a value to this property that is appropriate for your usage scenario. In other words, if you need only the current location within a few kilometers, you should not specify "best" for the accuracy. Determining a location with greater accuracy requires more time and more power.
When requesting high accuracy location data, the initial event delivered by the location service may not have the accuracy you requested. The location service delivers the initial event as quickly as possible. It then continues to determine the location with the accuracy you requested and delivers additional events, as necessary, when that data is available.

See also

This function checks for a license.

Created 18th August 2014, last changed 18th August 2014

CoreLocation.requestWhenInUseAuthorization - CoreLocation.setDistanceFilter