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).
Creates a TollSection
instance.
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 |
length
|
Distance from the start point to the end point of the |
tollPaymentTypes
|
The types of payments accepted at the toll gate. |
Distance from the start point to the end point of the sectionLocation
.
Declaration
Swift
public var length: Measurement<UnitLength>
Distance from the start of the route to the start point of the sectionLocation
.
Declaration
Swift
public var routeOffset: Measurement<UnitLength>
Information about the location of the section on the route’s geometry.
Declaration
Swift
public var sectionLocation: SectionLocation
Types of payments accepted at the toll gate.
Declaration
Swift
public var tollPaymentTypes: Set<TollPaymentType>