Enum RouteProgressState
-
- All Implemented Interfaces:
-
java.io.Serializable,kotlin.Comparable
public enum RouteProgressState extends Enum<RouteProgressState>
Contains the various progress states that can occur while navigating.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ROUTE_INVALIDThe com.trimblemaps.api.directions.v1.models.DirectionsRoute provided via com.trimblemaps.navigation.core.TrimbleMapsNavigation.setRoutes when in
Active Guidanceis not valid.ROUTE_INITIALIZEDThe DirectionsRoute is valid and com.trimblemaps.navigation.core.TrimbleMapsNavigation is waiting for sufficient android.location.Location updates from the com.trimblemaps.android.core.location.LocationEngine.
ROUTE_COMPLETEThe user has arrived at the destination of the given com.trimblemaps.api.directions.v1.models.RouteLeg.
LOCATION_TRACKINGcom.trimblemaps.navigation.core.TrimbleMapsNavigation is now confidently tracking the location updates and processing them against the route.
LOCATION_STALEA lack of android.location.Location updates has caused a lack of confidence in the progress updates being sent.
OFF_ROUTEState when we detect an off-route.
OFF_ROUTE_OFF_GRIDState when we detect an off-route and outside of grid, with no network connection
ROUTE_UNCERTAINState when we start following a route.
After a certain number of tracking points, we gain confidence and switch to tracking state. We do map-matching rather than route line snapping during this state.
-
Method Summary
Modifier and Type Method Description final RouteProgressStatevalueOf(String value)Returns the enum constant of this type with the specified name. final Array<RouteProgressState>values()Returns an array containing the constants of this enum type, in the order they're declared.
-
-
-
Method Detail
-
valueOf
final RouteProgressState valueOf(String value)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
-
values
final Array<RouteProgressState> values()
Returns an array containing the constants of this enum type, in the order they're declared.
This method may be used to iterate over the constants.
-
-