Car profile constructor with predefined FuelType.petrol as fuel type.
Optionaloptions: { fuel?: FuelType; mass?: number; maxSpeed?: number; plateNumber?: string }Configuration options
Optionalfuel?: FuelTypeEngine fuel type (default FuelType.petrol).
Optionalmass?: numberMass in kg (default 0).
OptionalmaxSpeed?: numberMax speed in m/s (default 0).
OptionalplateNumber?: stringRegistration plate number (inherited).
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
ProtectedhashInternalSerializes this instance to a JSON-compatible map.
Used internally, not intended for direct use by consumers. The map structure may change without notice.
JSON-compatible map
StaticfromInternalDeserializes a JSON-compatible map to create an instance.
Used internally, not intended for direct use by consumers. The expected map structure may change without notice.
JSON-compatible map
A new CarProfile instance
Car routing profile.
Profile used for car routing. Extends MotorVehicleProfile and exposes parameters relevant when computing car routes.