Skip to main content
←API Reference ←com.nianticspatial.nsdk

GeolocationData


Declaration​

data class GeolocationData

Summary​

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​

NameTypeSummary
latitudeDouble
-
longitudeDouble
-
altitudeDouble
-
headingDouble
-
orientationEdnFloatArray
-

Properties​

NameTypeSummary
altitudeDouble
Altitude in meters above the WGS84 ellipsoid (not mean sea level). This is the same reference as Android's [android.location.Location.getAltitude].
headingDouble
Heading in degrees relative to true north.
latitudeDouble
WGS84 latitude in degrees.
longitudeDouble
WGS84 longitude in degrees.
orientationEdnFloatArray
Orientation quaternion [x, y, z, w] in the East-Down-North (EDN) frame.

Functions​

NameTypeSummary
getEastDownNorthQuaternionFloatArray
Returns the orientation in East–Down–North (EDN) frame.
The returned quaternion is agnostic to the orientation of the display.
getEastUpSouthQuaternionFloatArray
Returns the orientation converted to East–Up–South (EUS) frame.
The returned quaternion is agnostic to the orientation of the display.