Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5    Statistic  

CoreLocation.setDesiredAccuracy

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 )

Parameters

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

Result

Returns OK or error.

Description

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


CoreLocation.purpose   -   CoreLocation.setDistanceFilter

Feedback: Report problem or ask question.




Links
MBS FileMaker tutorial videos