VehicleRestrictedSection

public struct VehicleRestrictedSection : Section

The VehicleRestrictedSection struct represents a route section indicating a restriction for the vehicle used.

Important

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

Lifecycle

  • Initializer

    Declaration

    Swift

    public init(
        sectionLocation: SectionLocation,
        routeOffset: Measurement<UnitLength>,
        length: Measurement<UnitLength>
    )

    Parameters

    sectionLocation

    The location of the section.

    routeOffset

    The offset on the route where the section starts.

    length

    The length of the section.

Public

  • The location of the section.

    Declaration

    Swift

    public var sectionLocation: SectionLocation
  • The offset on the route where the section starts.

    Declaration

    Swift

    public var routeOffset: Measurement<UnitLength>
  • The length of the section.

    Declaration

    Swift

    public var length: Measurement<UnitLength>