WindowsLocation.Location
------------------------

Queries current location report.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [WindowsLocation](component_WindowsLocation.md) | [10.4](newinversion104.md) | ❌ No | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "WindowsLocation.Location" ) ### Parameters

none

### Result

Returns JSON or error.

### Description

Queries current location report.  
We return a JSON object which may contain the following values:   
  
| Latitude | The latitude, in degrees. The latitude is between -90 and 90, where north is positive. |
|---|---|
| Longitude | The longitude, in degrees. The longitude is between -180 and 180, where East is positive. |
| Altitude | The altitude, in meters. The Altitude property retrieves the altitude relative to the reference ellipsoid that is defined by the latest revision of the World Geodetic System (WGS 84), rather than the altitude relative to sea level. |
| ErrorRadius | Combined with the location reported as the origin, this radius describes the circle in which the actual location is probably located. |
| AltitudeError | The altitude error, in meters. |
| SensorID | The ID of the sensor that generated the location report. Provided as formatted UUID. |
| Timestamp | The date and time when the report was generated. Time stamps are provided as Coordinated Universal Time (UTC). |

### Examples

Query location:

 Set Variable \[ $location ; MBS ( "WindowsLocation.Location" ) \]  
<small>  
Example result:   
{ "Latitude" : 50.3975 , "Longitude" : 7.362 , "Altitude" : 0 , "ErrorRadius" : 7919 , "AltitudeError" : 0 , "SensorID" : "{00000000-0000-0000-0000-000000000000}" , "Timestamp" : "7/30/2020 1:47:15 PM" } </small>### See also

- [WindowsLocation.Status](WindowsLocationStatus.md)

### Example Databases

- [Win Only/Windows Location](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Win%20Only/Windows%20Location.shtml#2ScriptAnchor_)

### Blog Entries

- [MBS Plugin Advent calendar: 11 - WindowsLocation](https://www.mbsplugins.de/archive/2023-12-11/MBS_Plugin_Advent_calendar_11_/monkeybreadsoftware_blog_filemaker)
- [What is new in the MBS FileMaker Plugin Version 10.4](https://www.mbsplugins.de/archive/2020-09-22/What_is_new_in_the_MBS_FileMak/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 30th July 2020 , last changed 30th July 2020

  
[WindowsLocation.Initialize](WindowsLocationInitialize.md) - [WindowsLocation.RequestPermissions](WindowsLocationRequestPermissions.md)

[HTML Version](WindowsLocationLocation.shtml)