Package es.situm.sdk.directions
Enum DirectionsRequest.AccessibilityMode
- java.lang.Object
-
- java.lang.Enum<DirectionsRequest.AccessibilityMode>
-
- es.situm.sdk.directions.DirectionsRequest.AccessibilityMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DirectionsRequest.AccessibilityMode>
- Enclosing class:
- DirectionsRequest
public static enum DirectionsRequest.AccessibilityMode extends java.lang.Enum<DirectionsRequest.AccessibilityMode>
The accessibility mode used to calculate a route
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHOOSE_SHORTEST
The route should choose the best route, without taking into account if it is accessible or not.ONLY_ACCESSIBLE
The route should always use accessible nodes.ONLY_NOT_ACCESSIBLE_FLOOR_CHANGES
The route should never use accessible floor changes (use this to force that routes don't use lifts)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DirectionsRequest.AccessibilityMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DirectionsRequest.AccessibilityMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CHOOSE_SHORTEST
public static final DirectionsRequest.AccessibilityMode CHOOSE_SHORTEST
The route should choose the best route, without taking into account if it is accessible or not. This option is the default so you don't have to do anything in order to use it
-
ONLY_ACCESSIBLE
public static final DirectionsRequest.AccessibilityMode ONLY_ACCESSIBLE
The route should always use accessible nodes.
-
ONLY_NOT_ACCESSIBLE_FLOOR_CHANGES
public static final DirectionsRequest.AccessibilityMode ONLY_NOT_ACCESSIBLE_FLOOR_CHANGES
The route should never use accessible floor changes (use this to force that routes don't use lifts)
-
-
Method Detail
-
values
public static DirectionsRequest.AccessibilityMode[] 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 (DirectionsRequest.AccessibilityMode c : DirectionsRequest.AccessibilityMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DirectionsRequest.AccessibilityMode 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
-
-