TollSection

public struct TollSection : Section

Represents a route section with a usage-based toll collection system (i.e., distance-based tolls, toll bridges and tunnels, weight-based tolls).

  • Initializer.

    Declaration

    Swift

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

    Parameters

    sectionLocation

    Information about the location of the section on the route’s geometry.

    routeOffset

    Distance from the start of the route to the start point of the sectionLocation.

    length

    Distance from the the start point to the end point of the sectionLocation.

    tollPaymentTypes

    The types of payments accepted at the toll gate.

  • Information about the location of the section on the route’s geometry.

    Declaration

    Swift

    public var sectionLocation: SectionLocation
  • Distance from the start of the route to the start point of the sectionLocation.

    Declaration

    Swift

    public var routeOffset: Measurement<UnitLength>
  • Distance from the the start point to the end point of the sectionLocation.

    Declaration

    Swift

    public var length: Measurement<UnitLength>
  • Types of payments accepted at the toll gate.

    Declaration

    Swift

    public var tollPaymentTypes: Set<TollPaymentType>