PathGeometry
public struct PathGeometry : HorizonElement
Describes path geometry of the horizon element.
This class holds a horizon element with information regarding path geometry. It contains information regarding exact coordinates and altitude.
To obtain PathGeometry
horizon elements, the integrator must create an instance of HorizonEngine
,
register HorizonOptions
including elementTypes
containing HorizonElementType
.pathGeometryType
with a call to HorizonEngine
.registerHorizonOptions
,
and request a HorizonResult
using the previously registered HorizonOptions
with a call to
HorizonEngine
.generateHorizon
.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Initializes instance of
PathGeometry
.Declaration
Swift
public init( id: Int, pathID: Int, startOffset: Measurement<UnitLength>, endOffset: Measurement<UnitLength>, coordinate: CLLocationCoordinate2D, altitude: Measurement<UnitLength>? )
-
Declaration
Swift
public let elementType: HorizonElementType
-
Declaration
Swift
public let id: Int
-
Declaration
Swift
public let pathID: Int
-
Declaration
Swift
public let startOffset: Measurement<UnitLength>
-
Declaration
Swift
public let endOffset: Measurement<UnitLength>
-
Coordinate of the geometry point.
Declaration
Swift
public let coordinate: CLLocationCoordinate2D
-
Altitude at the geometry point. Null if altitude is not supported.
Declaration
Swift
public let altitude: Measurement<UnitLength>?