Sections

public struct Sections

The Sections structure contains information about various sections on the route.

  • Carpool / HOV roads on the route.

    Declaration

    Swift

    public let carpoolSections: [CarpoolSection]
  • Car trains on the route.

    Declaration

    Swift

    public let carTrainSections: [CarTrainSection]
  • Country codes along the route.

    Declaration

    Swift

    public let countrySections: [CountrySection]
  • Ferries on the route.

    Declaration

    Swift

    public let ferrySections: [FerrySection]
  • 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.

  • 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.

  • Lane information on the route.

    Declaration

    Swift

    public var laneSections: [LaneSection]
  • Low-emission zones on the route.

    Declaration

    Swift

    public let lowEmissionZoneSections: [LowEmissionZoneSection]
  • Motorways on the route.

    Declaration

    Swift

    public let motorwaySections: [MotorwaySection]
  • Stretches on the route only accessible for pedestrians.

    Declaration

    Swift

    public let pedestrianSections: [PedestrianSection]
  • Road shields on the route.

    Declaration

    Swift

    public var roadShieldSections: [RoadShieldSection]
  • Speed limits on the route.

    Declaration

    Swift

    public var speedLimitSections: [SpeedLimitSection]
  • 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 }
  • 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]
  • Stretches of the route which require a purchase of a toll vignette.

    Declaration

    Swift

    public let tollVignetteSections: [TollVignetteSection]
  • Traffic events on the route.

    Declaration

    Swift

    public var trafficSections: [TrafficSection]
  • Tunnels on the route.

    Declaration

    Swift

    public let tunnelSections: [TunnelSection]
  • Unpaved roads on the route.

    Declaration

    Swift

    public let unpavedSections: [UnpavedSection]
  • Stretches of the route in built-up areas.

    Declaration

    Swift

    public let urbanSections: [UrbanSection]
  • Roads restricted for the vehicle used.

    Declaration

    Swift

    public var vehicleRestrictedSections: [VehicleRestrictedSection]