VehicleSpecification class
Contains vehicle related attributes.
Examples: Dimensions, weight, axle count. Only the fields that are set are considered for restriction handling.
Constructors
Properties
- axleCount ↔ int?
-
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.
Rendering: When set, truck restriction icons for an axle count greater than VehicleSpecification.axleCount will not be displayed.
When specifying VehicleSpecification.trailerAxleCount, then VehicleSpecification.axleCount is required and must be greater than VehicleSpecification.trailerAxleCount.
getter/setter pair
- currentWeightInKilograms ↔ int?
-
Current truck weight, including trailers and shipped goods currently loaded, specified in
kilograms. The provided value must be greater than or equal to 0. If unspecified,
it will default to VehicleSpecification.grossWeightInKilograms.
By default, it is not set.
getter/setter pair
- emptyWeightInKilograms ↔ int?
-
Empty weight of the vehicle without any load, excluding trailers, specified in kilograms.
The provided value must be greater than or equal to 0.
By default, it is not set.
getter/setter pair
- engineSizeInCubicCentimeters ↔ int?
-
Engine size of the scooter in cubic centimeters. Shouldn't be less than 1 or greater than 65535.
Default value is
null, which means the scooter route calculation ignores all engine size limits on the road.getter/setter pair - grossWeightInKilograms ↔ int?
-
Gross truck weight, including trailers and shipped goods when loaded at capacity, specified in
kilograms. The provided value must be greater than or equal to 0. If unspecified,
it will default to VehicleSpecification.currentWeightInKilograms.
By default, it is not set.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setter
-
hazardousMaterials
↔ List<
HazardousMaterial> -
Specifies a list of hazardous materials shipped in the vehicle.
Refer to HazardousMaterial for the available options.
By default, it is an empty list.
getter/setter pair
- heightInCentimeters ↔ int?
-
Vehicle height in centimeters. The provided value must be in the range [0, 5000].
By default, it is not set.
getter/setter pair
- isCommercial ↔ bool
-
Specifies whether the vehicle is a commercial or a non-commercial vehicle.
Defaults to
false.getter/setter pair - isTruckLight ↔ bool
-
A flag indicating whether the truck is light enough to be classified more as a car than a truck in Japan.
The flag should not be set to
truein other countries than Japan. Defaults tofalse.getter/setter pair - kingpinToRearAxleDistanceInCentimeters ↔ int?
-
Defines the kingpin to rear axle distance, in centimeters.
getter/setter pair
- lastCharacterOfLicensePlate ↔ String?
-
Last character of license plate in String format. This value can be used to
evaluate restrictions in environmental zones.
By default, it is not set.
getter/setter pair
- lengthInCentimeters ↔ int?
-
Vehicle length in centimeters. The provided value must be in the range [0, 30000].
By default, it is not set.
getter/setter pair
- occupancy ↔ int?
-
Specifies the number of occupants in the vehicle, including driver,
can affect the vehicle's ability to use HOV/carpool restricted lanes.
Should not be less than 1 or greater than 255.
By default, it is not set.
getter/setter pair
- payloadCapacityInKilograms ↔ int?
-
Allowed payload capacity, including trailers, specified in kilograms. The provided value
must be greater then or equal to 0.
By default, it is not set.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tiresCount ↔ int?
-
The total number of tires the vehicle has, i.e., the tires on the base vehicle and any attached trailers.
By default, it is not set.
Otherwise it is guaranteed to be in the range [1, 255].
getter/setter pair
- trailerAxleCount ↔ int?
-
Defines total number of axles across all the trailers attached to the vehicle.
This number is included in VehicleSpecification.axleCount, hence VehicleSpecification.trailerAxleCount must be less than VehicleSpecification.axleCount
and greater than or equal to 1. VehicleSpecification.axleCount and VehicleSpecification.trailerCount are required to specify VehicleSpecification.trailerAxleCount.
By default, it is not set.
getter/setter pair
- trailerCount ↔ int?
-
Defines number of trailers attached to the vehicle. The provided value must be in the range [0, 255].
By default, it is not set.
When specifying VehicleSpecification.trailerAxleCount, then VehicleSpecification.trailerCount is required and must be greater than 0.
getter/setter pair
- truckCategory ↔ TruckCategory?
-
Defines the truck category.
By default, it is not set.
Rendering: VehicleSpecification.truckCategory is ignored and has no effect.
getter/setter pair
- truckType ↔ TruckType
-
Will be replaced with
truckCategorywhen theTruckSpecificationwill be replaced byVehicleSpecification. Defines the type of truck. Defaults to TruckType.straight. Renderingsdk.mapview.TruckProfile: VehicleSpecification.truckType is ignored and has no effect.getter/setter pair - tunnelCategory ↔ TunnelCategory?
-
Specifies the tunnel categories to restrict certain route links.
The route will pass only through tunnels of a less strict category.
Refer to TunnelCategory for the available options.
By default, it is not set.
getter/setter pair
- weightPerAxleGroup ↔ WeightPerAxleGroup?
-
Allows specification of axle weights in a more fine-grained way than VehicleSpecification.weightPerAxleInKilograms.
This is relevant in countries with signs and regulations that specify different limits for different axle
groups, like the USA and Sweden.
By default is not set.
getter/setter pair
- weightPerAxleInKilograms ↔ int?
-
Heaviest weight per axle, regardless of axle type or axle group.
It is evaluated against all axle weight restrictions, including single axle and tandem axle weight restrictions.
The provided value must be greater or equal to 0.
By default, it is not set.
getter/setter pair
- widthInCentimeters ↔ int?
-
Vehicle width in centimeters. The provided value must be in the range [0, 5000].
By default, it is not set.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool - The equality operator.