Skip to main content
←API Reference ←NSDK

GeolocationData


Declaration​

struct GeolocationData

Summary​

Struct representing geolocation data including latitude, longitude, altitude, heading, and orientation. Coordinates use 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​

init(latitude: Double, longitude: Double, altitude: Double)

Summary​

Creates geolocation data from a latitude, longitude, and altitude.

Parameters​

NameTypeSummary
latitudeDouble
WGS84 latitude, in degrees.
longitudeDouble
WGS84 longitude, in degrees.
altitudeDouble
Altitude in meters above the WGS84 ellipsoid. When taking it from a
CLLocation, use ellipsoidalAltitude, not altitude (mean sea level).

Properties​

NameTypeSummary
let altitudeDouble
Altitude in meters above the WGS84 ellipsoid (not mean sea level), as
in CLLocation.ellipsoidalAltitude.
let headingDouble
Heading in degrees relative to true north.
let latitudeDouble
WGS84 latitude, in degrees.
let longitudeDouble
WGS84 longitude, in degrees.

Methods​

NameTypeSummary
getEastDownNorthQuaternionsimd_quatf
Returns the orientation in East-Down-North (EDN) frame.
getEastUpSouthQuaternionsimd_quatf
Returns the orientation converted to East–Up–South (EUS) frame.

Operators​

NameTypeSummary
static func != Bool
Returns a Boolean value indicating whether two values are not equal.
Inequality is the inverse of equality. For any values a and b, a != b
implies that a == b is false.
This is the default implementation of the not-equal-to operator (!=)
for any type that conforms to Equatable.
static func == Bool
Returns a Boolean value indicating whether two values are equal.
Equality is the inverse of inequality. For any values a and b,
a == b implies that a != b is false.

Relationships​

conforms to: Swift.Equatable
conforms to: Swift.Sendable
conforms to: Swift.SendableMetatype