isCommercial property - VehicleSpecification class - transport library - Dart API
isCommercial
isCommercial property
getter/setter pair
Specifies whether the vehicle is a commercial or a non-commercial vehicle.
Defaults to false.
Notes
- Only supported for online routing.
- This parameter is currently used only for the calculation of tolls in regions where it is applicable.
- Not used for offline calculations.
- Supported for TransportMode.car, TransportMode.truck, TransportMode.bus, TransportMode.privateBus and TransportMode.taxi.
Implementation
bool isCommercial;