TruckProfile class Routes & Navigation

Truck routing profile.

Profile used for truck/lorry routing that includes vehicle dimensions and axle/load constraints. These parameters are considered by the routing engine when calculating truck-compatible routes (bridges, height/weight limits, etc.).

Make sure to specify accurate values for the truck dimensions as they are measured in centimetres.

See also:

Inheritance

Constructors

TruckProfile.new({int height = 0, int length = 0, int width = 0, int axleLoad = 0, double maxSpeed = 0, int mass = 0, FuelType fuel = FuelType.diesel, String plateNumber = ''})
Truck profile constructor with default diesel fuel type.
TruckProfile.fromJson(Map<String, dynamic> json)
Deserializes a JSON-compatible map to create an instance.
factory

Properties

axleLoad int
Truck axle load in kg. By default it is 0 and is not considered in routing.
getter/setter pair
fuel FuelType
Engine fuel type. Default is FuelType.petrol.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setteroverride
height int
Truck height in cm. By default it is 0 and is not considered in routing.
getter/setter pair
length int
Truck length in cm. By default it is 0 and is not considered in routing.
getter/setter pair
mass int
Vehicle mass in kg. By default it is 0 and is not considered in routing.
getter/setter pairinherited
maxSpeed double
Vehicle maximum speed in m/s. By default it is 0 and is not considered in routing.
getter/setter pairinherited
plateNumber String
Vehicle plate number.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width int
Truck width in cm. By default it is 0 and is not considered in routing.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this instance to a JSON-compatible map.
toString() String
A string representation of this object.
inherited

Operators

operator ==(covariant TruckProfile other) bool
The equality operator.
override