Enum Class PlaceType

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

public enum PlaceType extends Enum<PlaceType>

Specifies place type of Place result from a search query.

  • Enum Constant Details

    • POI

      public static final PlaceType POI

      Point of interest, for example a shop, restaurant, museum.

    • ADDRESS

      public static final PlaceType ADDRESS

      Address of a place. It can have different formats based on the addressing system.

    • AREA

      public static final PlaceType AREA

      Geographical area, for example a country, a city or a district.

    • STREET

      public static final PlaceType STREET

      A street.

    • INTERSECTION

      public static final PlaceType INTERSECTION

      An intersection of two, or more, streets. Note: This type is not supported in offline search.

    • UNKNOWN

      public static final PlaceType UNKNOWN

      Unknown or missing place type.

  • Method Details

    • values

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