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 }
  • The length of the route section.

    Declaration

    Swift

    var length: 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

    Parameters

    with

    This value is added to distance from the start of the route to the section.

    Return Value

    Updated Section.