Skip to main content
API Reference NSDK

Vps2GeolocationData

Location and heading data calculated by VPS2.

Declaration

struct Vps2GeolocationData

Properties

NameTypeSummary
var clHeadingCLHeading
The heading represented as a CLHeading (via Vps2Heading).
trueHeading is the VPS2-computed heading in degrees clockwise from true north.
headingAccuracy is derived from rotationAccuracyDeg. The magnetometer component
values (x, y, z) are zero because VPS2 does not use a magnetometer.
var clLocationCLLocation
The position represented as a CLLocation (Vps2Location).
coordinate and horizontalAccuracy carry the VPS2-computed values.
ellipsoidalAltitude holds the WGS84 height from VPS2; verticalAccuracy is its precision.
- Note: altitude (MSL/orthometric) always returns -1 because converting WGS84
ellipsoidal height to MSL requires a geoid model (e.g. EGM96) that is not currently
available. Use ellipsoidalAltitude instead.
var debugDescriptionString
A textual representation of this instance, suitable for debugging.
Calling this property directly is discouraged. Instead, convert an
instance of any type to a string by using the String(reflecting:)
initializer. This initializer works with any type, and uses the custom
debugDescription property for types that conform to
CustomDebugStringConvertible:
struct Point: CustomDebugStringConvertible {
let x: Int, y: Int
var debugDescription: String {
return "(\(x), \(y))"
}
}
let p = Point(x: 21, y: 30)
let s = String(reflecting: p)
print(s)
// Prints "(21, 30)"
The conversion of p to a string in the assignment to s uses the
Point type's debugDescription property.
var geolocationDataGeolocationData
Contains the GPS and heading data.
var horizontalAccuracyMetresFloat
Horizontal accuracy in metres.
var rotationAccuracyDegFloat
Rotation accuracy in degrees.
let timestampDate
The time at which this geolocation was acquired.
var trackingStateVps2TrackingState
The state of VPS2 tracking. The other fields in this struct are
only valid if the tracking state is not .unavailable.
var verticalAccuracyMetresFloat
Vertical accuracy in metres.

Relationships

conforms to: Swift.CustomDebugStringConvertible