Enum WaypointType
Package com.here.sdk.routing
Enum WaypointType
- java.lang.Object
-
- java.lang.Enum<WaypointType>
-
- com.here.sdk.routing.WaypointType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<WaypointType>
public enum WaypointType extends java.lang.Enum<WaypointType>
Defines if the waypoint is a stop over, or a hint for a desired polyline of a route.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PASS_THROUGHActs as a rough position hint for route calculation on how the route should look like.STOPOVERStopover mode will cause the route to exactly pass through this point, generating maneuvers and splitting the route into sections.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static WaypointTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static WaypointType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STOPOVER
public static final WaypointType STOPOVER
Stopover mode will cause the route to exactly pass through this point, generating maneuvers and splitting the route into sections. Turns of 180 degrees are generated if necessary.
-
PASS_THROUGH
public static final WaypointType PASS_THROUGH
Acts as a rough position hint for route calculation on how the route should look like. Does not generate 180 degree turns, nor does it appear in the list of maneuvers. Imprecise inputs such as a map touch location should be represented as a pass through.
-
-
Method Detail
-
values
public static WaypointType[] 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 (WaypointType c : WaypointType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WaypointType valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-