TollRoadSection
@available(*, deprecated, renamed: "TomTomSDKRoute.TollSection", message: "This will be removed from future releases after 2026-07-15.")
public struct TollRoadSection : Section
The TollRoadSection struct contains information about a part of the route going via a toll road.
-
Creates a
TollRoadSectioninstance.Declaration
Swift
@available(*, deprecated, renamed: "TomTomSDKRoute.TollSection.init(sectionLocation:routeOffset:length:tollPaymentTypes:﹚", message: "This will be removed from future releases after 2026-07-15.") public init( sectionLocation: SectionLocation, routeOffset: Measurement<UnitLength>, length: Measurement<UnitLength>, tollPaymentTypes: Set<TollPaymentType> )Parameters
sectionLocationThe location of the section.
routeOffsetThe offset on the route where the section starts.
lengthThe length of the section.
tollPaymentTypesThe types of payments accepted at the toll gate.
-
The location of the section.
Declaration
Swift
@available(*, deprecated, message: "This will be removed from future releases after 2026-07-15.") public var sectionLocation: SectionLocation -
The offset on the route where the section starts.
Declaration
Swift
@available(*, deprecated, message: "This will be removed from future releases after 2026-07-15.") public var routeOffset: Measurement<UnitLength> -
The length of the section.
Declaration
Swift
@available(*, deprecated, message: "This will be removed from future releases after 2026-07-15.") public var length: Measurement<UnitLength> -
Types of payments accepted at the toll gate
Declaration
Swift
@available(*, deprecated, message: "This will be removed from future releases after 2026-07-15.") public var tollPaymentTypes: Set<TollPaymentType>
TomTom SDK for iOS (0.73.0-rc04)
TollRoadSection