Class GeoPlace
Class GeoPlace
- java.lang.Object
-
- com.here.sdk.search.GeoPlace
-
public final class GeoPlace extends java.lang.ObjectGeoPlace 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 Summary
Fields Modifier and Type Field Description AddressaddressAddress of the place Note: Address can have default value when no data is available.BusinessDetailsbusinessBusiness details Note: BusinessDetails can have default value when no data is available.java.util.List<PlaceCategory>categoriesList of corresponding categories Note: This list can be empty when no data is available.java.util.List<ExternalID>externalIDsAllows the client to set the id in their own system.LocationDetailslocationGeographical details Note: Can benullwhen retrieved from a suggestion's place property.java.lang.StringtitleThe localized title for the resource.PlaceTypetypeSpecifies place type.WebDetailswebContains info and direct web links to corresponding items.
-
Constructor Summary
Constructors Constructor Description GeoPlace()Creates a new instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetID()Allow the client to access GeoPlace id.inthashCode()booleanisMyPlace()Allow the client to access info about is it my place or not.static GeoPlacemakeMyPlace(java.lang.String title, GeoCoordinates coordinates)Creates a new instance of this class.
-
-
-
Field Detail
-
title
@NonNull public java.lang.String title
The localized title for the resource. Note: This String can be empty when no data is available.
-
externalIDs
@NonNull public java.util.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 java.util.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
nullwhen 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.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
makeMyPlace
@NonNull public static GeoPlace makeMyPlace(@NonNull java.lang.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 java.lang.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:
Trueif it is my place,falseotherwise.
-
-