Segment

public struct Segment
  • p1

    Declaration

    Swift

    public let p1: Coordinate
  • p2

    Declaration

    Swift

    public let p2: Coordinate
  • Declaration

    Swift

    public let distance: CLLocationDistance
  • Declaration

    Swift

    public let levels: [Float]
  • Declaration

    Swift

    public init(p1: Coordinate, p2: Coordinate)
  • Returns the direction from p1.coordinate2D to p2.coordinate2D.

    Warning

    It doesn’t take into account levels of p1 and p2 coordinates

    Declaration

    Swift

    public var direction: CLLocationDirection { get }