Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2    Statistic  


Sets the desired accuracy of the location data.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
CoreLocation 2.7 Yes No Yes, macOS only No Yes
MBS( "CoreLocation.setDesiredAccuracy"; Accuracy )   More


Parameter Description Example value
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

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

CoreLocation.requestWhenInUseAuthorization   -   CoreLocation.setDistanceFilter

Feedback: Report problem or ask question.

MBS Xojo Plugins