ProjectedRouteSection

public struct ProjectedRouteSection

Describes part of a ProjectedRoute.

Important

This is a Public Preview API. It may be changed or removed at any time.
  • Creates the projected route section instance with the given parameters.

    Declaration

    Swift

    public init(
        startBoundary: Boundary,
        endBoundary: Boundary,
        startOffset: Measurement<UnitLength> = .tt.meters(0),
        endOffset: Measurement<UnitLength> = .tt.meters(0)
    )

    Parameters

    startBoundary

    Start boundary of the section.

    endBoundary

    End boundary of the section.

    startOffset

    An offset from the start of the route to the start of the section.

    endOffset

    An offset from the start of the route to the end of the section.

  • Indicates if the ProjectedRouteSection is on the map.

    Important

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

    Declaration

    Swift

    public enum Boundary
  • Start boundary of the section.

    Declaration

    Swift

    public let startBoundary: Boundary
  • End boundary of the section.

    Declaration

    Swift

    public let endBoundary: Boundary
  • An offset from the start of the route to the start of the section.

    Declaration

    Swift

    public let startOffset: Measurement<UnitLength>
  • An offset from the start of the route to the end of the section.

    Declaration

    Swift

    public let endOffset: Measurement<UnitLength>