Class GeoPlace

java.lang.Object
com.here.sdk.search.GeoPlace

public final class GeoPlace extends Object

GeoPlace struct represents a location object: such as a country, a city, a point of interest (POI) etc. It can be used for PersonalPlace creation, in order to provide search on custom places.

  • Field Details

    • title

      @NonNull public String title

      The localized title for the resource. Note: This String can be empty when no data is available.

    • externalIDs

      @NonNull public List<ExternalID> externalIDs

      Allows the client to set the id in their own system. The list of supplier references to this place. The references are provided by external suppliers and are only available to users with valid contracts with said suppliers. If the user has no such contracts, the list is empty.

    • type

      @NonNull public PlaceType type

      Specifies place type.

    • categories

      @NonNull public List<PlaceCategory> categories

      List of corresponding categories Note: This list can be empty when no data is available.

    • address

      @NonNull public Address address

      Address of the place Note: Address can have default value when no data is available.

    • location

      @Nullable public LocationDetails location

      Geographical details Note: Can be null when retrieved from a suggestion's place property.

    • business

      @NonNull public BusinessDetails business

      Business details Note: BusinessDetails can have default value when no data is available.

    • web

      @NonNull public WebDetails web

      Contains info and direct web links to corresponding items. Note: WebDetails can have default value when no data is available.

  • Constructor Details

    • GeoPlace

      public GeoPlace()

      Creates a new instance.

  • Method Details

    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • makeMyPlace

      @NonNull public static GeoPlace makeMyPlace(@NonNull String title, @NonNull GeoCoordinates coordinates)

      Creates a new instance of this class. All other properties will keep their default value and all properties containing lists will contain empty lists.

      Parameters:
      title -

      The title.

      coordinates -

      The coordinates.

      Returns:

      An instance of GeoPlace.

    • getID

      @NonNull public String getID()

      Allow the client to access GeoPlace id.

      Returns:

      The place id.

    • isMyPlace

      public boolean isMyPlace()

      Allow the client to access info about is it my place or not.

      Returns:

      True if it is my place, false otherwise.