CoreLocation.latitude
---------------------

Returns the geographical coordinate information.

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

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

none

### Result

Returns latitude of geo coordinate.

### Description

Returns the geographical coordinate information.  
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).  
  
Returns zero if not location is available. See [CoreLocation.hasLocation](CoreLocationhasLocation.md) function.  
### Examples

Query position:

 Set Field \[ CoreLocation::latitude ; MBS ("CoreLocation.latitude") \]   
Set Field \[ CoreLocation::longitude ; MBS ("[CoreLocation.longitude](CoreLocationlongitude.md)") \]  
### See also

- [CoreLocation.altitude](CoreLocationaltitude.md)
- [CoreLocation.hasLocation](CoreLocationhasLocation.md)
- [CoreLocation.longitude](CoreLocationlongitude.md)
- [CoreLocation.SetUpdateLocationHandler](CoreLocationSetUpdateLocationHandler.md)

### Example Databases

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

### 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 checks for a license.

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

  
[CoreLocation.horizontalAccuracy](CoreLocationhorizontalAccuracy.md) - [CoreLocation.locationServicesEnabled](CoreLocationlocationServicesEnabled.md)

[HTML Version](CoreLocationlatitude.shtml)