Class TransportedCargo
- Last UpdatedJun 10, 2025
- 3 minute read
- java.lang.Object
-
- com.here.sdk.routing.TransportedCargo
-
public final class TransportedCargo extends java.lang.Object
This struct defines the transported cargo and weight of the vehicle.
Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.
-
-
Field Summary
Fields Modifier and Type Field Description java.util.List<TruckRoadType>
avoidedTruckRoadTypes
Specifies a list of avoided truck road types for vehicle.java.lang.Integer
currentWeightInKilograms
The current weight in kilograms.java.lang.Integer
grossWeightInKilograms
Truck weight including trailers and shipped goods in kilograms.java.util.List<HazardousMaterial>
hazardousMaterials
Specifies a list of hazardous materials shipped in the vehicle.TunnelCategory
linkTunnelCategory
Specifies the tunnel categories to restrict certain route links.WeightPerAxleGroup
weightPerAxleGroup
Allows specification of axle weights in a more fine-grained way thanweight_per_axle_in_kilograms
.java.lang.Integer
weightPerAxleInKilograms
Heaviest weight per axle, regardless of axle type or axle group.
-
Constructor Summary
Constructors Constructor Description TransportedCargo()
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int
hashCode()
-
-
-
Field Detail
-
currentWeightInKilograms
@Nullable public java.lang.Integer currentWeightInKilograms
The current weight in kilograms.
This parameter is used to provide a more accurate consumption prediction for electric vehicles.
grossWeightInKilograms
is used for vehicle restrictions on the road.The value is used to define the electrical vehicle consumption along the route.
-
grossWeightInKilograms
@Nullable public java.lang.Integer grossWeightInKilograms
Truck 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.
-
weightPerAxleInKilograms
@Nullable public java.lang.Integer weightPerAxleInKilograms
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. Note:
weight_per_axle_in_kilograms
andweight_per_axle_group
are incompatible. When available for your edition, if both attributes are set, during online RoutingEngine an [sdk.routing.RoutingError.INVALID_PARAMETER] error is generated. Otherwise, when offline RoutingEngine is in place, both parameters are evaluated and the maximum value between them will be used.
-
weightPerAxleGroup
@Nullable public WeightPerAxleGroup weightPerAxleGroup
Allows specification of axle weights in a more fine-grained way than
weight_per_axle_in_kilograms
. 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. Note:weight_per_axle_in_kilograms
andweight_per_axle_group
are incompatible. When available for your edition, if both attributes are set, during online RoutingEngine an [sdk.routing.RoutingError.INVALID_PARAMETER] error is generated. Otherwise, when offline RoutingEngine is in place, both parameters are evaluated and the maximum value between them will be used.
-
linkTunnelCategory
@Nullable public TunnelCategory linkTunnelCategory
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.
-
hazardousMaterials
@NonNull public java.util.List<HazardousMaterial> hazardousMaterials
Specifies a list of hazardous materials shipped in the vehicle. Refer to
HazardousMaterial
for the available options.
-
avoidedTruckRoadTypes
@NonNull public java.util.List<TruckRoadType> avoidedTruckRoadTypes
Specifies a list of avoided truck road types for vehicle. Refer to
TruckRoadType
for the available options.
-
-