Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4    Statistic    FMM    Blog  

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:

LatitudeThe latitude, in degrees. The latitude is between -90 and 90, where north is positive.
LongitudeThe longitude, in degrees. The longitude is between -180 and 180, where East is positive.
AltitudeThe 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.
ErrorRadiusCombined with the location reported as the origin, this radius describes the circle in which the actual location is probably located.
AltitudeErrorThe altitude error, in meters.
SensorIDThe ID of the sensor that generated the location report. Provided as formatted UUID.
TimestampThe 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

This function checks for a license.

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


WindowsLocation.Initialize - WindowsLocation.RequestPermissions

💬 Ask a question or report a problem