GeolocationData
Declaration
data class GeolocationDataSummary
A geographic position and orientation, using the WGS84 datum. Depending on the API, this describes the device, a VPS asset's origin, an anchor, or an arbitrary location passed in.
Constructors
constructor(latitude: Double, longitude: Double, altitude: Double, heading: Double, orientationEdn: FloatArray)
Parameters
| Name | Type | Summary |
|---|---|---|
| latitude | Double | - |
| longitude | Double | - |
| altitude | Double | - |
| heading | Double | - |
| orientationEdn | FloatArray | - |
Properties
| Name | Type | Summary |
|---|---|---|
| altitude | Double | Altitude in meters above the WGS84 ellipsoid (not mean sea level). This is the same reference as Android's [android.location.Location.getAltitude]. |
| heading | Double | Heading in degrees relative to true north. |
| latitude | Double | WGS84 latitude in degrees. |
| longitude | Double | WGS84 longitude in degrees. |
| orientationEdn | FloatArray | Orientation quaternion [x, y, z, w] in the East-Down-North (EDN) frame. |
Functions
| Name | Type | Summary |
|---|---|---|
| getEastDownNorthQuaternion | FloatArray | Returns the orientation in East–Down–North (EDN) frame. The returned quaternion is agnostic to the orientation of the display. |
| getEastUpSouthQuaternion | FloatArray | Returns the orientation converted to East–Up–South (EUS) frame. The returned quaternion is agnostic to the orientation of the display. |