Vps2GeolocationData
Location and heading data calculated by VPS2.
Declaration
struct Vps2GeolocationDataProperties
| Name | Type | Summary |
|---|---|---|
| var clHeading | CLHeading | |
| var clLocation | CLLocation | 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 WGS84ellipsoidal height to MSL requires a geoid model (e.g. EGM96) that is not currently available. Use ellipsoidalAltitude instead. |
| var debugDescription | String | 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 toCustomDebugStringConvertible: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 thePoint type's debugDescription property. |
| var geolocationData | GeolocationData | Contains the GPS and heading data. |
| var horizontalAccuracyMetres | Float | Horizontal accuracy in metres. |
| var rotationAccuracyDeg | Float | Rotation accuracy in degrees. |
| let timestamp | Date | The time at which this geolocation was acquired. |
| var trackingState | Vps2TrackingState | The state of VPS2 tracking. The other fields in this struct are only valid if the tracking state is not .unavailable. |
| var verticalAccuracyMetres | Float | Vertical accuracy in metres. |
Relationships
conforms to: Swift.CustomDebugStringConvertible
CLHeading(viaVps2Heading).trueHeadingis the VPS2-computed heading in degrees clockwise from true north.headingAccuracyis derived fromrotationAccuracyDeg. The magnetometer componentvalues (
x,y,z) are zero because VPS2 does not use a magnetometer.