GeoPlace (API Reference)
Class GeoPlace
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 Summary
FieldsModifier and TypeFieldDescriptionAddress of the place Note: Address can have default value when no data is available.Business details Note: BusinessDetails can have default value when no data is available.List of corresponding categories Note: This list can be empty when no data is available.Allows the client to set the id in their own system.Geographical details Note: Can benullwhen retrieved from a suggestion's place property.The localized title for the resource.Specifies place type.Contains info and direct web links to corresponding items. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetID()Allow the client to access GeoPlace id.inthashCode()booleanAllow the client to access info about is it my place or not.static GeoPlacemakeMyPlace(String title, GeoCoordinates coordinates) Creates a new instance of this class.
-
Field Details
-
title
The localized title for the resource. Note: This String can be empty when no data is available.
-
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
Specifies place type.
-
categories
List of corresponding categories Note: This list can be empty when no data is available.
-
address
Address of the place Note: Address can have default value when no data is available.
-
location
Geographical details Note: Can be
nullwhen retrieved from a suggestion's place property. -
business
Business details Note: BusinessDetails can have default value when no data is available.
-
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
-
hashCode
public int hashCode() -
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
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.
-