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
TollSectioninstance.Declaration
Swift
public init( sectionLocation: SectionLocation, routeOffset: Measurement<UnitLength>, length: Measurement<UnitLength>, tollPaymentTypes: Set<TollPaymentType> )Parameters
sectionLocationInformation about the location of the section on the route’s geometry.
routeOffsetDistance from the start of the route to the start point of the
sectionLocation.lengthDistance from the start point to the end point of the
sectionLocation.tollPaymentTypesThe 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 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>
TomTom SDK for iOS (0.53.1)
TollSection