Physical properties of the vehicle.
Weight is the only dimension routing takes. There are no height, width, length or axle-weight restrictions. TravelMode lists the modes routing offers.
TravelMode
The vehicle weight is used to:
// Standard delivery vanconst vanDimensions: VehicleDimensions = { weightKG: 3500};// Large truckconst truckDimensions: VehicleDimensions = { weightKG: 40000}; Copy
// Standard delivery vanconst vanDimensions: VehicleDimensions = { weightKG: 3500};// Large truckconst truckDimensions: VehicleDimensions = { weightKG: 40000};
Optional
Weight of the vehicle in kilograms.
A non-zero weight makes routing consider weight restrictions.
Typical values are:
0 Copy
0
weightKG: 1500 // Compact carweightKG: 3500 // Loaded vanweightKG: 40000 // Fully loaded truck Copy
weightKG: 1500 // Compact carweightKG: 3500 // Loaded vanweightKG: 40000 // Fully loaded truck
Physical properties of the vehicle.
Remarks
Weight is the only dimension routing takes. There are no height, width, length or axle-weight restrictions.
TravelModelists the modes routing offers.The vehicle weight is used to:
Example