Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
WindowsLocation.Location
Queries current location report.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
WindowsLocation | 10.4 | ❌ 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" ) ]
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"
}
See also
Example Databases
Blog Entries
- MBS Plugin Advent calendar: 11 - WindowsLocation
- What is new in the MBS FileMaker Plugin Version 10.4
This function checks for a license.
Created 30th July 2020, last changed 30th July 2020
WindowsLocation.Initialize - WindowsLocation.RequestPermissions