VehicleStop.VehicleStopState

  • VehicleStop.VehicleStopState is an annotation that represents the current state of a vehicle stop in the Driver SDK.

  • It has four possible states: NEW, ENROUTE, ARRIVED, and UNSPECIFIED, represented by integer constants.

  • NEW indicates the stop is created but the driver is not routing to it; ENROUTE indicates active routing; ARRIVED means the driver has reached the stop; and UNSPECIFIED is the default or unrecognized state.

  • It inherits methods from the java.lang.annotation.Annotation interface, such as annotationType(), equals(), hashCode(), and toString().

public static abstract @interface VehicleStop.VehicleStopState implements Annotation

The current state of a VehicleStop.

Constant Summary

int ARRIVED The driver has finished routing and arrived at the VehicleStop.
int ENROUTE The driver is actively routing to the VehicleStop.
int NEW The VehicleStop has been created but the driver is not actively routing to it.
int UNSPECIFIED Default, used for an unspecified or unrecognized VehicleStop state.

Inherited Method Summary

Constants

public static final int ARRIVED

The driver has finished routing and arrived at the VehicleStop.

Constant Value: 3

public static final int ENROUTE

The driver is actively routing to the VehicleStop.

Constant Value: 2

public static final int NEW

The VehicleStop has been created but the driver is not actively routing to it.

Constant Value: 1

public static final int UNSPECIFIED

Default, used for an unspecified or unrecognized VehicleStop state.

Constant Value: 0