Section

public protocol Section

The Section protocol contains information about a part of the route.

  • Location of the lane section.

    Declaration

    Swift

    var sectionLocation: SectionLocation { get }
  • Distance from the start of the route to startPoint

    Declaration

    Swift

    var routeOffset: Measurement<UnitLength> { get set }
  • Length in meters.

    Declaration

    Swift

    var length: Measurement<UnitLength> { get }
  • range Default implementation

    Range instance from the start of the route to the route startPoint with length in meters.

    Important

    This is a Public Preview API. It may be changed or removed at any time.

    Default Implementation

    Range instance from the start of the route to the route startPoint with length in meters.

    Important

    This is a Public Preview API. It may be changed or removed at any time.

    Declaration

    Swift

    var range: ClosedRange<Measurement<UnitLength>> { get }
  • updateRouteOffset(with:) Default implementation

    Update the offset on the route for this section.

    Important

    This is a Public Preview API. It may be changed or removed at any time.

    Default Implementation

    Update the offset on the route for this section.

    Important

    This is a Public Preview API. It may be changed or removed at any time.

    Declaration

    Swift

    func updateRouteOffset(with: Measurement<UnitLength>) -> Self