Sections
public struct Sections
The Sections structure contains information about various sections on the route.
-
init(roadShieldSections:trafficSections: vehicleRestrictedSections: speedLimitSections: laneSections: tollRoadSections: ferrySections: motorwaySections: carTrainSections: countrySections: tollVignetteSections: tunnelSections: pedestrianSections: carpoolSections: urbanSections: unpavedSections: lowEmissionZoneSections: ) Creates a new
Sectionsinstance.Declaration
Swift
@available(*, deprecated, message: "This API is deprecated and will be removed with the next major release.\nUse initializer with tollSections instead.") public init( roadShieldSections: [RoadShieldSection] = [], trafficSections: [TrafficSection] = [], vehicleRestrictedSections: [VehicleRestrictedSection] = [], speedLimitSections: [SpeedLimitSection] = [], laneSections: [LaneSection] = [], tollRoadSections: [TollRoadSection] = [], ferrySections: [FerrySection] = [], motorwaySections: [MotorwaySection] = [], carTrainSections: [CarTrainSection] = [], countrySections: [CountrySection] = [], tollVignetteSections: [TollVignetteSection] = [], tunnelSections: [TunnelSection] = [], pedestrianSections: [PedestrianSection] = [], carpoolSections: [CarpoolSection] = [], urbanSections: [UrbanSection] = [], unpavedSections: [UnpavedSection] = [], lowEmissionZoneSections: [LowEmissionZoneSection] = [] )Parameters
roadShieldSectionsRoad shields on the route.
trafficSectionsTraffic events on the route.
vehicleRestrictedSectionsRoads restricted for the vehicle used.
speedLimitSectionsSpeed limits on the route.
laneSectionsLane information on the route.
tollRoadSectionsToll roads on the route.
ferrySectionsFerries on the route.
motorwaySectionsMotorways on the route.
carTrainSectionsCar trains on the route.
countrySectionsCountry codes along the route.
tollVignetteSectionsStretches of the route which require a purchase of a toll vignette.
tunnelSectionsTunnels on the route.
pedestrianSectionsStretches on the route only accessible for pedestrians.
carpoolSectionsCarpool / HOV roads on the route.
urbanSectionsStretches of the route in built-up areas.
unpavedSectionsUnpaved roads on the route.
lowEmissionZoneSectionsLow-emission zones on the route.
-
init(tollSections:roadShieldSections: trafficSections: vehicleRestrictedSections: speedLimitSections: laneSections: ferrySections: motorwaySections: carTrainSections: countrySections: tollVignetteSections: tunnelSections: pedestrianSections: carpoolSections: urbanSections: unpavedSections: lowEmissionZoneSections: ) Creates a new
Sectionsinstance.Declaration
Swift
public init( tollSections: [TollSection], roadShieldSections: [RoadShieldSection] = [], trafficSections: [TrafficSection] = [], vehicleRestrictedSections: [VehicleRestrictedSection] = [], speedLimitSections: [SpeedLimitSection] = [], laneSections: [LaneSection] = [], ferrySections: [FerrySection] = [], motorwaySections: [MotorwaySection] = [], carTrainSections: [CarTrainSection] = [], countrySections: [CountrySection] = [], tollVignetteSections: [TollVignetteSection] = [], tunnelSections: [TunnelSection] = [], pedestrianSections: [PedestrianSection] = [], carpoolSections: [CarpoolSection] = [], urbanSections: [UrbanSection] = [], unpavedSections: [UnpavedSection] = [], lowEmissionZoneSections: [LowEmissionZoneSection] = [] )Parameters
tollSectionsSections with toll gates.
roadShieldSectionsRoad shields on the route.
trafficSectionsTraffic events on the route.
vehicleRestrictedSectionsRoads restricted for the vehicle used.
speedLimitSectionsSpeed limits on the route.
laneSectionsLane information on the route.
ferrySectionsFerries on the route.
motorwaySectionsMotorways on the route.
carTrainSectionsCar trains on the route.
countrySectionsCountry codes along the route.
tollVignetteSectionsStretches of the route which require a purchase of a toll vignette.
tunnelSectionsTunnels on the route.
pedestrianSectionsStretches on the route only accessible for pedestrians.
carpoolSectionsCarpool / HOV roads on the route.
urbanSectionsStretches of the route in built-up areas.
unpavedSectionsUnpaved roads on the route.
lowEmissionZoneSectionsLow-emission zones on the route.
-
Road shields on the route.
Declaration
Swift
public var roadShieldSections: [RoadShieldSection] -
Traffic events on the route.
Declaration
Swift
public var trafficSections: [TrafficSection] -
Roads restricted for the vehicle used.
Declaration
Swift
public var vehicleRestrictedSections: [VehicleRestrictedSection] -
Speed limits on the route.
Declaration
Swift
public var speedLimitSections: [SpeedLimitSection] -
Lane information on the route.
Declaration
Swift
public var laneSections: [LaneSection] -
Ferries on the route.
Declaration
Swift
public let ferrySections: [FerrySection] -
Motorways on the route.
Declaration
Swift
public let motorwaySections: [MotorwaySection] -
Car trains on the route.
Declaration
Swift
public let carTrainSections: [CarTrainSection] -
Country codes along the route.
Declaration
Swift
public let countrySections: [CountrySection] -
Stretches of the route which require a purchase of a toll vignette.
Declaration
Swift
public let tollVignetteSections: [TollVignetteSection] -
Tunnels on the route.
Declaration
Swift
public let tunnelSections: [TunnelSection] -
Stretches on the route only accessible for pedestrians.
Declaration
Swift
public let pedestrianSections: [PedestrianSection] -
Carpool / HOV roads on the route.
Declaration
Swift
public let carpoolSections: [CarpoolSection] -
Stretches of the route in built-up areas.
Declaration
Swift
public let urbanSections: [UrbanSection] -
Unpaved roads on the route.
Declaration
Swift
public let unpavedSections: [UnpavedSection] -
Low-emission zones on the route.
Declaration
Swift
public let lowEmissionZoneSections: [LowEmissionZoneSection] -
Sections of the route with the usage-based toll collection system (i.e., distance-based tolls, toll bridges and tunnels, weight-based tolls).
Declaration
Swift
public let tollSections: [TollSection] -
Toll roads on the route.
Declaration
Swift
@available(*, deprecated, message: "This API is deprecated and will be removed with the next major release.") public var tollRoadSections: [TollRoadSection] { get }
TomTom SDK for iOS (0.53.1)
Sections