CoreLocation.hasLocation
------------------------

Queries whether we have a location.

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

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

none

### Result

Returns 1 or 0 or error.

### Description

Queries whether we have a location.  
You may need to call [CoreLocation.startUpdatingLocation](CoreLocationstartUpdatingLocation.md) to start getting locations.  
### See also

- [CoreLocation.altitude](CoreLocationaltitude.md)
- [CoreLocation.description](CoreLocationdescription.md)
- [CoreLocation.latitude](CoreLocationlatitude.md)
- [CoreLocation.longitude](CoreLocationlongitude.md)
- [CoreLocation.requestLocation](CoreLocationrequestLocation.md)
- [CoreLocation.startUpdatingLocation](CoreLocationstartUpdatingLocation.md)

### Release notes

- **Version 9.4**
    - Added [CoreLocation.hasLocation](http://www.mbsplugins.eu/CoreLocationhasLocation.shtml) function.

### 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)
- [Neue Funktionen des MBS FileMaker Plugin 9.4](https://www.mbsplugins.de/archive/2019-10-05/Neue_Funktionen_des_MBS_FileMa/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 9.4pr8](https://www.mbsplugins.de/archive/2019-09-14/MBS_FileMaker_Plugin_version_9/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 12nd September 2019 , last changed 12nd September 2019

  
[CoreLocation.distanceFromLocation](CoreLocationdistanceFromLocation.md) - [CoreLocation.headingAvailable](CoreLocationheadingAvailable.md)

[HTML Version](CoreLocationhasLocation.shtml)