Vehicle details for routing.
Optional
The vehicle model (static properties).
It includes dimensions and other characteristics that don't change during travel.
The vehicle state.
It includes current heading and other properties that vary during travel.
They combine all vehicle-related parameters:
Specify them when:
// Van with just its weightconst van: VehicleParameters = { model: { dimensions: { weightKG: 3500 } }};// Speed-limited truckconst truck: VehicleParameters = { model: { dimensions: { weightKG: 40000 } }, restrictions: { maxSpeedKMH: 80 }}; Copy
// Van with just its weightconst van: VehicleParameters = { model: { dimensions: { weightKG: 3500 } }};// Speed-limited truckconst truck: VehicleParameters = { model: { dimensions: { weightKG: 40000 } }, restrictions: { maxSpeedKMH: 80 }};
Vehicle details for routing.