HorizonSnapshot
public struct HorizonSnapshot
Warning
This is an experimental API. It may be changed or removed at any time without notice. Use of this API is strongly discouraged.-
Positions are sorted by the most likely place the user is.
Declaration
Swift
public let positions: [HorizonPosition] -
Get the most probable path from the alternatives.
Declaration
Swift
public func mainPath() throws -> PathReturn Value
The most probable path.
-
Get all the horizon elements that are untill a certain
distanceAheadof the current position in the mainPathDeclaration
Swift
public func elementsAhead(inDistance distanceAhead: Measurement<UnitLength>) throws -> [HorizonElement]Parameters
inDistanceThe distance for which we want
HorizonElementsReturn Value
List of found
HorizonElements -
The distance to the element on the path. Negative values are before the current position and positive values are ahead of the current position.
Declaration
Swift
public func distanceTo(element: HorizonElement) throws -> Measurement<UnitLength>Parameters
elementThe element to which we want to know the distance.
Return Value
The distance to the element. The Number signal represents direction, ahead or before.
HorizonSnapshot Structure Reference