The vehicle's current conditions, which change during travel.
const state: VehicleState = { heading: 45 // Heading northeast}; Copy
const state: VehicleState = { heading: 45 // Heading northeast};
Optional
The current heading at the starting point, in degrees clockwise from true North.
It improves the initial route calculation by considering the vehicle's current direction of travel.
Allowed values are 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
The vehicle's current conditions, which change during travel.
Example