Generic vehicle state properties applicable to all vehicle types.
Contains state information that doesn't depend on the engine type.
const state: GenericVehicleState = { heading: 45 // Heading northeast}; Copy
const state: GenericVehicleState = { heading: 45 // Heading northeast};
Optional
The current heading at the starting point, in degrees starting at true North and continuing in a clockwise direction.
Bearing Reference:
Used to improve initial route calculation by considering the vehicle's current direction of travel.
Allowed values: 0-359
heading: 0 // Facing northheading: 90 // Facing eastheading: 180 // Facing southheading: 270 // Facing westheading: 45 // Facing northeast Copy
heading: 0 // Facing northheading: 90 // Facing eastheading: 180 // Facing southheading: 270 // Facing westheading: 45 // Facing northeast
Generic vehicle state properties applicable to all vehicle types.
Remarks
Contains state information that doesn't depend on the engine type.
Example