CoreLocation.horizontalAccuracy
-------------------------------

The radius of uncertainty for the location, measured in meters.

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

MBS( "CoreLocation.horizontalAccuracy" ) ### Parameters

none

### Result

Returns the horizontal accuracy value.

### Description

The radius of uncertainty for the location, measured in meters.  
The location's latitude and longitude identify the center of the circle, and this value indicates the radius of that circle. A negative value indicates that the location's latitude and longitude are invalid.  
This function queries current know location. It's updated from time to time. To receive a script call when new location is available, please use [CoreLocation.SetUpdateLocationHandler](CoreLocationSetUpdateLocationHandler.md).  
### Examples

Query accuracy:

 Set Field \[ CoreLocation::horizontalAccuracy ; MBS ("CoreLocation.horizontalAccuracy") \]   
Set Field \[ CoreLocation::verticalAccuracy ; MBS ("[CoreLocation.verticalAccuracy](CoreLocationverticalAccuracy.md)") \]  
### See also

- [CoreLocation.SetUpdateLocationHandler](CoreLocationSetUpdateLocationHandler.md)
- [CoreLocation.verticalAccuracy](CoreLocationverticalAccuracy.md)

### Example Databases

- [Mac and iOS/CoreLocation/CoreLocation](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/CoreLocation/CoreLocation.shtml#2ScriptAnchor_)

### Blog Entries

- [MBS Plugin Advent calendar: 8 - Determine your own position](https://www.mbsplugins.de/archive/2023-12-08/MBS_Plugin_Advent_calendar_8_-/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 2/2022, Seite 31](https://filemaker-magazin.de/neuigkeit/4174-Appetithappen-FMM_202202)

This function is free to use.

Created 18th August 2014 , last changed 13th January 2021

  
[CoreLocation.headingAvailable](CoreLocationheadingAvailable.md) - [CoreLocation.latitude](CoreLocationlatitude.md)

[HTML Version](CoreLocationhorizontalAccuracy.shtml)