CarSpecifications
public struct CarSpecifications : Hashable
Car specifications contain vehicle related attributes. Examples: Dimensions, weight, axle count. Only the fields that are set are considered for restriction handling.
-
Car weight including trailers and shipped goods in kilograms. The provided value must be greater than or equal to 0. By default, it is not set. Note: This parameter is limited to a maximum weight of 4250 kg without trailer and 7550 kg with trailer.
Declaration
Swift
public var grossWeightInKilograms: Int32? -
Car height in centimeters. The provided value must be in the range [0, 5000]. By default, it is not set.
Declaration
Swift
public var heightInCentimeters: Int32? -
Car width in centimeters. The provided value must be in the range [0, 5000]. By default, it is not set.
Declaration
Swift
public var widthInCentimeters: Int32? -
Car length in centimeters. The provided value must be in the range [0, 30000]. By default, it is not set.
Declaration
Swift
public var lengthInCentimeters: Int32? -
Defines total number of axles in the vehicle. The provided value must be greater than or equal to 2. By default, it is not set. Route calculation: When not set, possible axle count restrictions will not be taken into consideration. When specifying
CarSpecifications.trailerAxleCount, thenCarSpecifications.axleCountis required and must be greater thanCarSpecifications.trailerAxleCount.Declaration
Swift
public var axleCount: Int32? -
Defines number of trailers attached to the vehicle. The provided value must be in the range [0, 1]. By default, it is not set. When specifying
CarSpecifications.trailerAxleCount, thenCarSpecifications.trailerCountis required and must be greater than 0.Declaration
Swift
public var trailerCount: Int32? -
Defines total number of axles across all the trailers attached to the vehicle. This number is included in
CarSpecifications.axleCount, henceCarSpecifications.trailerAxleCountmust be less thanCarSpecifications.axleCountand greater than or equal to 1.CarSpecifications.axleCountandCarSpecifications.trailerCountare required to specifyCarSpecifications.trailerAxleCount. By default, it is not set.Declaration
Swift
public var trailerAxleCount: Int32? -
init(grossWeightInKilograms:heightInCentimeters: widthInCentimeters: lengthInCentimeters: axleCount: trailerCount: trailerAxleCount: ) Creates a new instance.
Declaration
Swift
public init(grossWeightInKilograms: Int32? = nil, heightInCentimeters: Int32? = nil, widthInCentimeters: Int32? = nil, lengthInCentimeters: Int32? = nil, axleCount: Int32? = nil, trailerCount: Int32? = nil, trailerAxleCount: Int32? = nil)