Murl Engine Lua Addon API  Version 1.0 beta
Murl.Input.ILocationDevice

The ILocationDevice interface.

To receive data the device must be activated by IAppConfiguration::SetLocationActive().


Table members

Inherited


Murl.Input.IDevice

Methods


GetLatitude()

Get the latitude in degrees relative to the equator. Use GetHorizontalAccuracy() to check validity.

Number GetLatitude()

Returns
Number The latitude in degrees relative to the equator. Positive values indicate latitudes north of the equator and negative values indicate latitudes south of the equator.

GetLongitude()

Get the longitude in degrees relative to the zero meridian. Use GetHorizontalAccuracy() to check validity.

Number GetLongitude()

Returns
Number The longitude in degrees relative to the zero meridian. Positive values extending east of the meridian and negative values extending west of the meridian.

GetAltitude()

Get the altitude above sea level in meters. Use GetVerticalAccuracy() to check validity.

Number GetAltitude()

Returns
Number The altitude above sea level in meters. Positive values are above sea level and negative values are below sea level.

GetGeoLocation()

Get the latitude, longitude and altitude geo location.

Murl.Util.GeoLocation GetGeoLocation()

Returns
Murl.Util.GeoLocation The geo location object.

GetVelocity()

Get the velocity over ground in meters per second. A negative values indicates an invalid speed.

Number GetVelocity()

Returns
Number The velocity over ground in meters per second.

GetHorizontalAccuracy()

Get the radius of uncertainty for the location in meters. A negative value indicates that the latitude and longitude are invalid.

Number GetHorizontalAccuracy()

Returns
Number The radius of uncertainty for the location in meters.

GetVerticalAccuracy()

Get the accuracy of the altitude in meters. A negative value indicates that the altitude value is invalid.

Number GetVerticalAccuracy()

Returns
Number The accuracy of the altitude in meters.

GetAuthorization()

Get the current device authorization status.

Murl.IEnums.AuthorizationStatus GetAuthorization()

Returns
Murl.IEnums.AuthorizationStatus The current authorization status.