Enum Class MatchSideOfStreet

java.lang.Object
java.lang.Enum<MatchSideOfStreet>
com.here.sdk.routing.MatchSideOfStreet
All Implemented Interfaces:
Serializable, Comparable<MatchSideOfStreet>, Constable

public enum MatchSideOfStreet extends Enum<MatchSideOfStreet>

Specifies how the location set by Waypoint.sideOfStreetHint should be handled. This setting might affect the geometry of the resulting route.

  • Enum Constant Details

    • ALWAYS

      public static final MatchSideOfStreet 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

      public static final MatchSideOfStreet 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

      public static MatchSideOfStreet[] 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

      public static MatchSideOfStreet valueOf(String name)
      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 name
      NullPointerException - if the argument is null