public static enum ComputeRoutesRequest.ReferenceRoute extends Enum<ComputeRoutesRequest.ReferenceRoute> implements com.google.protobuf.ProtocolMessageEnum
A supported reference route on the ComputeRoutesRequest.Protobuf enum
google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute| Enum Constant and Description |
|---|
FUEL_EFFICIENT
Fuel efficient route.
|
REFERENCE_ROUTE_UNSPECIFIED
Not used.
|
SHORTER_DISTANCE
Route with shorter travel distance.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
FUEL_EFFICIENT_VALUE
Fuel efficient route.
|
static int |
REFERENCE_ROUTE_UNSPECIFIED_VALUE
Not used.
|
static int |
SHORTER_DISTANCE_VALUE
Route with shorter travel distance.
|
| Modifier and Type | Method and Description |
|---|---|
static ComputeRoutesRequest.ReferenceRoute |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<ComputeRoutesRequest.ReferenceRoute> |
internalGetValueMap() |
static ComputeRoutesRequest.ReferenceRoute |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static ComputeRoutesRequest.ReferenceRoute |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static ComputeRoutesRequest.ReferenceRoute |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ComputeRoutesRequest.ReferenceRoute[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ComputeRoutesRequest.ReferenceRoute REFERENCE_ROUTE_UNSPECIFIED
Not used. Requests containing this value fail.
REFERENCE_ROUTE_UNSPECIFIED = 0;public static final ComputeRoutesRequest.ReferenceRoute FUEL_EFFICIENT
Fuel efficient route.
FUEL_EFFICIENT = 1;public static final ComputeRoutesRequest.ReferenceRoute SHORTER_DISTANCE
Route with shorter travel distance. This is an experimental feature. For `DRIVE` requests, this feature prioritizes shorter distance over driving comfort. For example, it may prefer local roads instead of highways, take dirt roads, cut through parking lots, etc. This feature does not return any maneuvers that Google Maps knows to be illegal. For `BICYCLE` and `TWO_WHEELER` requests, this feature returns routes similar to those returned when you don't specify `requested_reference_routes`. This feature is not compatible with any other travel modes, via intermediate waypoints, or `optimize_waypoint_order`; such requests will fail. However, you can use it with any `routing_preference`.
SHORTER_DISTANCE = 2;public static final ComputeRoutesRequest.ReferenceRoute UNRECOGNIZED
public static final int REFERENCE_ROUTE_UNSPECIFIED_VALUE
Not used. Requests containing this value fail.
REFERENCE_ROUTE_UNSPECIFIED = 0;public static final int FUEL_EFFICIENT_VALUE
Fuel efficient route.
FUEL_EFFICIENT = 1;public static final int SHORTER_DISTANCE_VALUE
Route with shorter travel distance. This is an experimental feature. For `DRIVE` requests, this feature prioritizes shorter distance over driving comfort. For example, it may prefer local roads instead of highways, take dirt roads, cut through parking lots, etc. This feature does not return any maneuvers that Google Maps knows to be illegal. For `BICYCLE` and `TWO_WHEELER` requests, this feature returns routes similar to those returned when you don't specify `requested_reference_routes`. This feature is not compatible with any other travel modes, via intermediate waypoints, or `optimize_waypoint_order`; such requests will fail. However, you can use it with any `routing_preference`.
SHORTER_DISTANCE = 2;public static ComputeRoutesRequest.ReferenceRoute[] values()
for (ComputeRoutesRequest.ReferenceRoute c : ComputeRoutesRequest.ReferenceRoute.values()) System.out.println(c);
public static ComputeRoutesRequest.ReferenceRoute 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 nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static ComputeRoutesRequest.ReferenceRoute valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static ComputeRoutesRequest.ReferenceRoute forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<ComputeRoutesRequest.ReferenceRoute> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static ComputeRoutesRequest.ReferenceRoute valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025 Google LLC. All rights reserved.