CoreLocation.setDesiredAccuracy
-------------------------------

Sets the desired accuracy of the location data.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [CoreLocation](component_CoreLocation.md) | [2.7](newinversion27.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "CoreLocation.setDesiredAccuracy"; Accuracy ) 

**MBS**( **"CoreLocation.setDesiredAccuracy";** /\* Sets the desired accuracy of the location data. \*/  
**$Accuracy**) /\* The new value. Can be a number or the folling text strings: Best, NearestTenMeters, HundredMeters, Kilometer and ThreeKilometers. Default is "best".e.g. 123 \*/ 

### Parameters

| 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 |

### 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.desiredAccuracy](CoreLocationdesiredAccuracy.md)
- [CoreLocation.verticalAccuracy](CoreLocationverticalAccuracy.md)

This function checks for a license.

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

  
[CoreLocation.requestWhenInUseAuthorization](CoreLocationrequestWhenInUseAuthorization.md) - [CoreLocation.setDistanceFilter](CoreLocationsetDistanceFilter.md)

[HTML Version](CoreLocationsetDesiredAccuracy.shtml)