copy

fun copy(laneSections: List<LaneSection> = this.laneSections, trafficSections: List<TrafficSection> = this.trafficSections, vehicleRestrictedSections: List<VehicleRestrictedSection> = this.vehicleRestrictedSections, speedLimitSections: List<SpeedLimitSection> = this.speedLimitSections, carpoolSections: List<CarpoolSection> = this.carpoolSections, carTrainSections: List<CarTrainSection> = this.carTrainSections, countrySections: List<CountrySection> = this.countrySections, ferrySections: List<FerrySection> = this.ferrySections, lowEmissionZoneSections: List<LowEmissionZoneSection> = this.lowEmissionZoneSections, motorwaySections: List<MotorwaySection> = this.motorwaySections, pedestrianSections: List<PedestrianSection> = this.pedestrianSections, roadShieldSections: List<RoadShieldSection> = this.roadShieldSections, tollRoadSections: List<TollRoadSection> = this.tollRoadSections, tollVignetteSections: List<TollVignetteSection> = this.tollVignetteSections, tunnelSections: List<TunnelSection> = this.tunnelSections, unpavedSections: List<UnpavedSection> = this.unpavedSections, urbanSections: List<UrbanSection> = this.urbanSections, tollSections: List<TollSection> = this.tollSections): Sections

Deprecated

This API is deprecated and will be removed with the next major release.

Replace with

Sections(
            laneSections,
            trafficSections,
            vehicleRestrictedSections,
            speedLimitSections,
            carpoolSections,
            carTrainSections,
            countrySections,
            ferrySections,
            lowEmissionZoneSections,
            motorwaySections,
            pedestrianSections,
            roadShieldSections,
            tollRoadSections,
            tollVignetteSections,
            tunnelSections,
            unpavedSections,
            urbanSections,
            tollSections
        )

Creates a copy of the object, with the option to modify some of its properties.

Return

A copy of the object, with optionally modified properties.

Parameters

laneSections

Information about lane directions for route.

trafficSections

Information about traffic for the route.

vehicleRestrictedSections

Information about sections which are restricted for the given vehicle, but could not be avoided.

speedLimitSections

Information about speed limit sections for the route.

carpoolSections

Information about carpool sections for the route.

carTrainSections

Information about car train sections for the route.

countrySections

Information about country sections for the route.

ferrySections

Information about ferry sections for the route.

lowEmissionZoneSections

Information about low-emission zone sections for the route.

motorwaySections

Information about motorway sections for the route.

pedestrianSections

Information about pedestrian only sections for the route.

roadShieldSections

Information about road shield sections for the route.

tollRoadSections

Information about toll road sections for the route.

tollVignetteSections

Information about toll vignette sections for the route.

tunnelSections

Information about tunnel sections for the route.

unpavedSections

Information about unpaved sections for the route.

urbanSections

Information about urban sections for the route.

tollSections

Information about toll sections for the route.