Package com.google.maps.routing.v2
Enum Maneuver
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Maneuver>
@Generated
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 (for example, turn left, merge, or straight).Protobuf enum
google.maps.routing.v2.Maneuver-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionInitial maneuver.Take the ferry.Take the train leading onto the ferry.Take the left fork.Take the right fork.Not used.Merge into traffic.Used to indicate a street name change.Take the left ramp.Take the right ramp.Turn left at the roundabout.Turn right at the roundabout.Go straight.Turn left.Turn right.Turn sharply to the left.Turn sharply to the right.Turn slightly to the left.Turn slightly to the right.Make a left u-turn.Make a right u-turn. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intInitial maneuver.static final intTake the train leading onto the ferry.static final intTake the ferry.static final intTake the left fork.static final intTake the right fork.static final intNot used.static final intMerge into traffic.static final intUsed to indicate a street name change.static final intTake the left ramp.static final intTake the right ramp.static final intTurn left at the roundabout.static final intTurn right at the roundabout.static final intGo straight.static final intTurn left.static final intTurn right.static final intTurn sharply to the left.static final intTurn sharply to the right.static final intTurn slightly to the left.static final intTurn slightly to the right.static final intMake a left u-turn.static final intMake a right u-turn. -
Method Summary
Modifier and TypeMethodDescriptionstatic ManeuverforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<Maneuver>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 ManeuverReturns 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 Details
-
MANEUVER_UNSPECIFIED
Not used.
MANEUVER_UNSPECIFIED = 0; -
TURN_SLIGHT_LEFT
Turn slightly to the left.
TURN_SLIGHT_LEFT = 1; -
TURN_SHARP_LEFT
Turn sharply to the left.
TURN_SHARP_LEFT = 2; -
UTURN_LEFT
Make a left u-turn.
UTURN_LEFT = 3; -
TURN_LEFT
Turn left.
TURN_LEFT = 4; -
TURN_SLIGHT_RIGHT
Turn slightly to the right.
TURN_SLIGHT_RIGHT = 5; -
TURN_SHARP_RIGHT
Turn sharply to the right.
TURN_SHARP_RIGHT = 6; -
UTURN_RIGHT
Make a right u-turn.
UTURN_RIGHT = 7; -
TURN_RIGHT
Turn right.
TURN_RIGHT = 8; -
STRAIGHT
Go straight.
STRAIGHT = 9; -
RAMP_LEFT
Take the left ramp.
RAMP_LEFT = 10; -
RAMP_RIGHT
Take the right ramp.
RAMP_RIGHT = 11; -
MERGE
Merge into traffic.
MERGE = 12; -
FORK_LEFT
Take the left fork.
FORK_LEFT = 13; -
FORK_RIGHT
Take the right fork.
FORK_RIGHT = 14; -
FERRY
Take the ferry.
FERRY = 15; -
FERRY_TRAIN
Take the train leading onto the ferry.
FERRY_TRAIN = 16; -
ROUNDABOUT_LEFT
Turn left at the roundabout.
ROUNDABOUT_LEFT = 17; -
ROUNDABOUT_RIGHT
Turn right at the roundabout.
ROUNDABOUT_RIGHT = 18; -
DEPART
Initial maneuver.
DEPART = 19; -
NAME_CHANGE
Used to indicate a street name change.
NAME_CHANGE = 20; -
UNRECOGNIZED
-
-
Field Details
-
MANEUVER_UNSPECIFIED_VALUE
public static final int MANEUVER_UNSPECIFIED_VALUENot used.
MANEUVER_UNSPECIFIED = 0;- See Also:
-
TURN_SLIGHT_LEFT_VALUE
public static final int TURN_SLIGHT_LEFT_VALUETurn slightly to the left.
TURN_SLIGHT_LEFT = 1;- See Also:
-
TURN_SHARP_LEFT_VALUE
public static final int TURN_SHARP_LEFT_VALUETurn sharply to the left.
TURN_SHARP_LEFT = 2;- See Also:
-
UTURN_LEFT_VALUE
public static final int UTURN_LEFT_VALUEMake a left u-turn.
UTURN_LEFT = 3;- See Also:
-
TURN_LEFT_VALUE
public static final int TURN_LEFT_VALUETurn left.
TURN_LEFT = 4;- See Also:
-
TURN_SLIGHT_RIGHT_VALUE
public static final int TURN_SLIGHT_RIGHT_VALUETurn slightly to the right.
TURN_SLIGHT_RIGHT = 5;- See Also:
-
TURN_SHARP_RIGHT_VALUE
public static final int TURN_SHARP_RIGHT_VALUETurn sharply to the right.
TURN_SHARP_RIGHT = 6;- See Also:
-
UTURN_RIGHT_VALUE
public static final int UTURN_RIGHT_VALUEMake a right u-turn.
UTURN_RIGHT = 7;- See Also:
-
TURN_RIGHT_VALUE
public static final int TURN_RIGHT_VALUETurn right.
TURN_RIGHT = 8;- See Also:
-
STRAIGHT_VALUE
public static final int STRAIGHT_VALUEGo straight.
STRAIGHT = 9;- See Also:
-
RAMP_LEFT_VALUE
public static final int RAMP_LEFT_VALUETake the left ramp.
RAMP_LEFT = 10;- See Also:
-
RAMP_RIGHT_VALUE
public static final int RAMP_RIGHT_VALUETake the right ramp.
RAMP_RIGHT = 11;- See Also:
-
MERGE_VALUE
public static final int MERGE_VALUEMerge into traffic.
MERGE = 12;- See Also:
-
FORK_LEFT_VALUE
public static final int FORK_LEFT_VALUETake the left fork.
FORK_LEFT = 13;- See Also:
-
FORK_RIGHT_VALUE
public static final int FORK_RIGHT_VALUETake the right fork.
FORK_RIGHT = 14;- See Also:
-
FERRY_VALUE
public static final int FERRY_VALUETake the ferry.
FERRY = 15;- See Also:
-
FERRY_TRAIN_VALUE
public static final int FERRY_TRAIN_VALUETake the train leading onto the ferry.
FERRY_TRAIN = 16;- See Also:
-
ROUNDABOUT_LEFT_VALUE
public static final int ROUNDABOUT_LEFT_VALUETurn left at the roundabout.
ROUNDABOUT_LEFT = 17;- See Also:
-
ROUNDABOUT_RIGHT_VALUE
public static final int ROUNDABOUT_RIGHT_VALUETurn right at the roundabout.
ROUNDABOUT_RIGHT = 18;- See Also:
-
DEPART_VALUE
public static final int DEPART_VALUEInitial maneuver.
DEPART = 19;- See Also:
-
NAME_CHANGE_VALUE
public static final int NAME_CHANGE_VALUEUsed to indicate a street name change.
NAME_CHANGE = 20;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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.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
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
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
-