Package com.google.maps.routing.v2
Enum Maneuver
- java.lang.Object
-
- java.lang.Enum<Maneuver>
-
- com.google.maps.routing.v2.Maneuver
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Maneuver>
public enum Maneuver extends Enum<Maneuver> implements com.google.protobuf.ProtocolMessageEnum
A set of values that specify the navigation action to take for the current step (e.g., turn left, merge, straight, etc.).
Protobuf enumgoogle.maps.routing.v2.Maneuver
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEPARTInitial maneuver.FERRYTake the ferry.FERRY_TRAINTake the train leading onto the ferry.FORK_LEFTTake the left fork.FORK_RIGHTTake the right fork.MANEUVER_UNSPECIFIEDNot used.MERGEMerge into traffic.NAME_CHANGEUsed to indicate a street name change.RAMP_LEFTTake the left ramp.RAMP_RIGHTTake the right ramp.ROUNDABOUT_LEFTTurn left at the roundabout.ROUNDABOUT_RIGHTTurn right at the roundabout.STRAIGHTGo straight.TURN_LEFTTurn left.TURN_RIGHTTurn right.TURN_SHARP_LEFTTurn sharply to the left.TURN_SHARP_RIGHTTurn sharply to the right.TURN_SLIGHT_LEFTTurn slightly to the left.TURN_SLIGHT_RIGHTTurn slightly to the right.UNRECOGNIZEDUTURN_LEFTMake a left u-turn.UTURN_RIGHTMake a right u-turn.
-
Field Summary
Fields Modifier and Type Field Description static intDEPART_VALUEInitial maneuver.static intFERRY_TRAIN_VALUETake the train leading onto the ferry.static intFERRY_VALUETake the ferry.static intFORK_LEFT_VALUETake the left fork.static intFORK_RIGHT_VALUETake the right fork.static intMANEUVER_UNSPECIFIED_VALUENot used.static intMERGE_VALUEMerge into traffic.static intNAME_CHANGE_VALUEUsed to indicate a street name change.static intRAMP_LEFT_VALUETake the left ramp.static intRAMP_RIGHT_VALUETake the right ramp.static intROUNDABOUT_LEFT_VALUETurn left at the roundabout.static intROUNDABOUT_RIGHT_VALUETurn right at the roundabout.static intSTRAIGHT_VALUEGo straight.static intTURN_LEFT_VALUETurn left.static intTURN_RIGHT_VALUETurn right.static intTURN_SHARP_LEFT_VALUETurn sharply to the left.static intTURN_SHARP_RIGHT_VALUETurn sharply to the right.static intTURN_SLIGHT_LEFT_VALUETurn slightly to the left.static intTURN_SLIGHT_RIGHT_VALUETurn slightly to the right.static intUTURN_LEFT_VALUEMake a left u-turn.static intUTURN_RIGHT_VALUEMake a right u-turn.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ManeuverforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<Maneuver>internalGetValueMap()static ManeuvervalueOf(int value)Deprecated.static ManeuvervalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static ManeuvervalueOf(String name)Returns the enum constant of this type with the specified name.static Maneuver[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MANEUVER_UNSPECIFIED
public static final Maneuver MANEUVER_UNSPECIFIED
Not used.
MANEUVER_UNSPECIFIED = 0;
-
TURN_SLIGHT_LEFT
public static final Maneuver TURN_SLIGHT_LEFT
Turn slightly to the left.
TURN_SLIGHT_LEFT = 1;
-
TURN_SHARP_LEFT
public static final Maneuver TURN_SHARP_LEFT
Turn sharply to the left.
TURN_SHARP_LEFT = 2;
-
UTURN_LEFT
public static final Maneuver UTURN_LEFT
Make a left u-turn.
UTURN_LEFT = 3;
-
TURN_LEFT
public static final Maneuver TURN_LEFT
Turn left.
TURN_LEFT = 4;
-
TURN_SLIGHT_RIGHT
public static final Maneuver TURN_SLIGHT_RIGHT
Turn slightly to the right.
TURN_SLIGHT_RIGHT = 5;
-
TURN_SHARP_RIGHT
public static final Maneuver TURN_SHARP_RIGHT
Turn sharply to the right.
TURN_SHARP_RIGHT = 6;
-
UTURN_RIGHT
public static final Maneuver UTURN_RIGHT
Make a right u-turn.
UTURN_RIGHT = 7;
-
TURN_RIGHT
public static final Maneuver TURN_RIGHT
Turn right.
TURN_RIGHT = 8;
-
STRAIGHT
public static final Maneuver STRAIGHT
Go straight.
STRAIGHT = 9;
-
RAMP_LEFT
public static final Maneuver RAMP_LEFT
Take the left ramp.
RAMP_LEFT = 10;
-
RAMP_RIGHT
public static final Maneuver RAMP_RIGHT
Take the right ramp.
RAMP_RIGHT = 11;
-
MERGE
public static final Maneuver MERGE
Merge into traffic.
MERGE = 12;
-
FORK_LEFT
public static final Maneuver FORK_LEFT
Take the left fork.
FORK_LEFT = 13;
-
FORK_RIGHT
public static final Maneuver FORK_RIGHT
Take the right fork.
FORK_RIGHT = 14;
-
FERRY
public static final Maneuver FERRY
Take the ferry.
FERRY = 15;
-
FERRY_TRAIN
public static final Maneuver FERRY_TRAIN
Take the train leading onto the ferry.
FERRY_TRAIN = 16;
-
ROUNDABOUT_LEFT
public static final Maneuver ROUNDABOUT_LEFT
Turn left at the roundabout.
ROUNDABOUT_LEFT = 17;
-
ROUNDABOUT_RIGHT
public static final Maneuver ROUNDABOUT_RIGHT
Turn right at the roundabout.
ROUNDABOUT_RIGHT = 18;
-
DEPART
public static final Maneuver DEPART
Initial maneuver.
DEPART = 19;
-
NAME_CHANGE
public static final Maneuver NAME_CHANGE
Used to indicate a street name change.
NAME_CHANGE = 20;
-
UNRECOGNIZED
public static final Maneuver UNRECOGNIZED
-
-
Field Detail
-
MANEUVER_UNSPECIFIED_VALUE
public static final int MANEUVER_UNSPECIFIED_VALUE
Not used.
MANEUVER_UNSPECIFIED = 0;- See Also:
- Constant Field Values
-
TURN_SLIGHT_LEFT_VALUE
public static final int TURN_SLIGHT_LEFT_VALUE
Turn slightly to the left.
TURN_SLIGHT_LEFT = 1;- See Also:
- Constant Field Values
-
TURN_SHARP_LEFT_VALUE
public static final int TURN_SHARP_LEFT_VALUE
Turn sharply to the left.
TURN_SHARP_LEFT = 2;- See Also:
- Constant Field Values
-
UTURN_LEFT_VALUE
public static final int UTURN_LEFT_VALUE
Make a left u-turn.
UTURN_LEFT = 3;- See Also:
- Constant Field Values
-
TURN_LEFT_VALUE
public static final int TURN_LEFT_VALUE
Turn left.
TURN_LEFT = 4;- See Also:
- Constant Field Values
-
TURN_SLIGHT_RIGHT_VALUE
public static final int TURN_SLIGHT_RIGHT_VALUE
Turn slightly to the right.
TURN_SLIGHT_RIGHT = 5;- See Also:
- Constant Field Values
-
TURN_SHARP_RIGHT_VALUE
public static final int TURN_SHARP_RIGHT_VALUE
Turn sharply to the right.
TURN_SHARP_RIGHT = 6;- See Also:
- Constant Field Values
-
UTURN_RIGHT_VALUE
public static final int UTURN_RIGHT_VALUE
Make a right u-turn.
UTURN_RIGHT = 7;- See Also:
- Constant Field Values
-
TURN_RIGHT_VALUE
public static final int TURN_RIGHT_VALUE
Turn right.
TURN_RIGHT = 8;- See Also:
- Constant Field Values
-
STRAIGHT_VALUE
public static final int STRAIGHT_VALUE
Go straight.
STRAIGHT = 9;- See Also:
- Constant Field Values
-
RAMP_LEFT_VALUE
public static final int RAMP_LEFT_VALUE
Take the left ramp.
RAMP_LEFT = 10;- See Also:
- Constant Field Values
-
RAMP_RIGHT_VALUE
public static final int RAMP_RIGHT_VALUE
Take the right ramp.
RAMP_RIGHT = 11;- See Also:
- Constant Field Values
-
MERGE_VALUE
public static final int MERGE_VALUE
Merge into traffic.
MERGE = 12;- See Also:
- Constant Field Values
-
FORK_LEFT_VALUE
public static final int FORK_LEFT_VALUE
Take the left fork.
FORK_LEFT = 13;- See Also:
- Constant Field Values
-
FORK_RIGHT_VALUE
public static final int FORK_RIGHT_VALUE
Take the right fork.
FORK_RIGHT = 14;- See Also:
- Constant Field Values
-
FERRY_VALUE
public static final int FERRY_VALUE
Take the ferry.
FERRY = 15;- See Also:
- Constant Field Values
-
FERRY_TRAIN_VALUE
public static final int FERRY_TRAIN_VALUE
Take the train leading onto the ferry.
FERRY_TRAIN = 16;- See Also:
- Constant Field Values
-
ROUNDABOUT_LEFT_VALUE
public static final int ROUNDABOUT_LEFT_VALUE
Turn left at the roundabout.
ROUNDABOUT_LEFT = 17;- See Also:
- Constant Field Values
-
ROUNDABOUT_RIGHT_VALUE
public static final int ROUNDABOUT_RIGHT_VALUE
Turn right at the roundabout.
ROUNDABOUT_RIGHT = 18;- See Also:
- Constant Field Values
-
DEPART_VALUE
public static final int DEPART_VALUE
Initial maneuver.
DEPART = 19;- See Also:
- Constant Field Values
-
NAME_CHANGE_VALUE
public static final int NAME_CHANGE_VALUE
Used to indicate a street name change.
NAME_CHANGE = 20;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static Maneuver[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Maneuver c : Maneuver.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Maneuver valueOf(String name)
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.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static Maneuver valueOf(int value)
Deprecated.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.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
public static Maneuver forNumber(int value)
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<Maneuver> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static Maneuver valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
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.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-