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
Sections
instance.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
roadShieldSections
Road shields on the route.
trafficSections
Traffic events on the route.
vehicleRestrictedSections
Roads restricted for the vehicle used.
speedLimitSections
Speed limits on the route.
laneSections
Lane information on the route.
tollRoadSections
Toll roads on the route.
ferrySections
Ferries on the route.
motorwaySections
Motorways on the route.
carTrainSections
Car trains on the route.
countrySections
Country codes along the route.
tollVignetteSections
Stretches of the route which require a purchase of a toll vignette.
tunnelSections
Tunnels on the route.
pedestrianSections
Stretches on the route only accessible for pedestrians.
carpoolSections
Carpool / HOV roads on the route.
urbanSections
Stretches of the route in built-up areas.
unpavedSections
Unpaved roads on the route.
lowEmissionZoneSections
Low-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
Sections
instance.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
tollSections
Sections with toll gates.
roadShieldSections
Road shields on the route.
trafficSections
Traffic events on the route.
vehicleRestrictedSections
Roads restricted for the vehicle used.
speedLimitSections
Speed limits on the route.
laneSections
Lane information on the route.
ferrySections
Ferries on the route.
motorwaySections
Motorways on the route.
carTrainSections
Car trains on the route.
countrySections
Country codes along the route.
tollVignetteSections
Stretches of the route which require a purchase of a toll vignette.
tunnelSections
Tunnels on the route.
pedestrianSections
Stretches on the route only accessible for pedestrians.
carpoolSections
Carpool / HOV roads on the route.
urbanSections
Stretches of the route in built-up areas.
unpavedSections
Unpaved roads on the route.
lowEmissionZoneSections
Low-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 }