public enum DirectionsRouteType extends Enum<DirectionsRouteType>
Enum Constant and Description |
---|
FRESH_ROUTE
This value means
MapboxNavigation will only consider annotation data with
MapboxNavigation.startNavigation(DirectionsRoute, DirectionsRouteType) . |
NEW_ROUTE
This value means
MapboxNavigation will consider the entire route with
MapboxNavigation.startNavigation(DirectionsRoute, DirectionsRouteType) . |
Modifier and Type | Method and Description |
---|---|
static DirectionsRouteType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DirectionsRouteType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DirectionsRouteType NEW_ROUTE
MapboxNavigation
will consider the entire route with
MapboxNavigation.startNavigation(DirectionsRoute, DirectionsRouteType)
. This value
should be used in off-route scenarios or any other scenario when you need a completely new route object.
Please note, this is the default value for MapboxNavigation.startNavigation(DirectionsRoute)
.
public static final DirectionsRouteType FRESH_ROUTE
MapboxNavigation
will only consider annotation data with
MapboxNavigation.startNavigation(DirectionsRoute, DirectionsRouteType)
. This value can be used with
RouteRefresh
to provide up-to-date ETAs and congestion data while navigating.public static DirectionsRouteType[] values()
for (DirectionsRouteType c : DirectionsRouteType.values()) System.out.println(c);
public static DirectionsRouteType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null© 2019 Mapbox. All rights reserved.