HorizonPath
public struct HorizonPath : Equatable
Path in the horizon. The length of the path as well as which types of horizon elements it contains are determined by the horizon subscription options.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public init( pathID: Int, parentPathID: Int, offsetOnParentPath: Measurement<UnitLength>, horizonElements: [HorizonElementType: [HorizonElement]], pathGeometry: [PathGeometry] )
-
Identifier of this path.
Declaration
Swift
public let pathID: Int
-
Identifier of the parent path (0 if there is no parent path).
Declaration
Swift
public let parentPathID: Int
-
Offset on the parent path of the stub where this path starts. (0 if there is no parent path).
Declaration
Swift
public let offsetOnParentPath: Measurement<UnitLength>
-
Map of horizon elements on the path.
Declaration
Swift
public let horizonElements: [HorizonElementType : [HorizonElement]]
-
Path geometry.
Declaration
Swift
public let pathGeometry: [PathGeometry]
-
Declaration
Swift
public static func == (lhs: HorizonPath, rhs: HorizonPath) -> Bool
-
Get all elements in all paths of the snapshot
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public func getElements() -> [HorizonElement]
-
Get all elements in all paths of the snapshot for the specified types
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public func getElements(types: [HorizonElementType]) -> [HorizonElement]
-
Get all elements in all paths of the snapshot of a specific type
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public func getElements(type: HorizonElementType) -> [HorizonElement]