VehicleStop.VehicleStopState

  • VehicleStop.VehicleStopState is an annotation that indicates the current state of a VehicleStop within the Driver SDK.

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

  • NEW indicates the VehicleStop has been created but the driver isn't actively routing to it yet, ENROUTE means the driver is actively navigating to the stop, and ARRIVED signifies the driver has reached the destination.

  • UNSPECIFIED is a default state for unrecognized or unspecified VehicleStop states.

  • The annotation inherits methods from java.lang.annotation.Annotation for reflection purposes, like 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