Creates a motor vehicle profile with sensible defaults.
Optionaloptions: { fuel?: FuelType; mass?: number; maxSpeed?: number; plateNumber?: string }Configuration options
Optionalfuel?: FuelTypeEngine fuel type (default FuelType.petrol).
Optionalmass?: numberVehicle mass in kilograms (default 0).
OptionalmaxSpeed?: numberMaximum vehicle speed in m/s (default 0).
OptionalplateNumber?: stringRegistration plate number (default empty).
Engine fuel type. Default is FuelType.petrol.
Vehicle mass in kg. By default it is 0 and is not considered in routing.
Vehicle maximum speed in m/s. By default it is 0 and is not considered in routing.
The vehicle's registration plate number.
Get hash code for use in maps/sets
ProtectedhashStaticfrom
Motor vehicle profile.
Base class for motorized vehicle profiles such as CarProfile and TruckProfile. Provides common routing parameters used by the routing engine (mass, maximum speed and fuel type).