MatchSideOfStreet (API Reference)
Package com.here.sdk.routing
Enum Class MatchSideOfStreet
- All Implemented Interfaces:
Serializable,Comparable<MatchSideOfStreet>,Constable
Specifies how the location set by Waypoint.sideOfStreetHint should be handled. This setting might affect the geometry of the resulting route.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAlways prefer the given side of street regardless if the street has dividers.Only prefer using side of street set by street hint in case the street has dividers. -
Method Summary
Modifier and TypeMethodDescriptionstatic MatchSideOfStreetReturns the enum constant of this class with the specified name.static MatchSideOfStreet[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALWAYS
Always prefer the given side of street regardless if the street has dividers. Use this value if you know that the user is willing to take a longer route in order to ensure arriving at the correct side of the street.
-
ONLY_IF_DIVIDED
Only prefer using side of street set by street hint in case the street has dividers. This is the default setting and it is recommended for most use cases.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-