GeolocationData
Declaration
struct GeolocationDataSummary
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
Summary
Parameters
| Name | Type | Summary |
|---|---|---|
| latitude | Double | WGS84 latitude, in degrees. |
| longitude | Double | WGS84 longitude, in degrees. |
| altitude | Double | Altitude in meters above the WGS84 ellipsoid. When taking it from a CLLocation, use ellipsoidalAltitude, not altitude (mean sea level). |
Properties
| Name | Type | Summary |
|---|---|---|
| let altitude | Double | Altitude in meters above the WGS84 ellipsoid (not mean sea level), as in CLLocation.ellipsoidalAltitude. |
| let heading | Double | Heading in degrees relative to true north. |
| let latitude | Double | WGS84 latitude, in degrees. |
| let longitude | Double | WGS84 longitude, in degrees. |
Creates geolocation data from a latitude, longitude, and altitude.