currentWeightInKilograms property - VehicleSpecification class - transport library - Dart API
currentWeightInKilograms
currentWeightInKilograms property
getter/setter pair
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.
Notes:
- Supported in TransportMode.truck, TransportMode.bus, TransportMode.privateBus, TransportMode.car (Beta), TransportMode.taxi (Beta) transport modes.
- Maximum weight for a car or taxi without a trailer is 5000 kg.
- Maximum weight for a car or taxi with a trailer is 8500 kg.
- A route request with VehicleSpecification.currentWeightInKilograms above VehicleSpecification.grossWeightInKilograms may result in non-compliant or invalid routes.
Implementation
int? currentWeightInKilograms;