@Generated(value="software.amazon.awssdk:codegen") public final class Place extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Place.Builder,Place>
Contains details about addresses or points of interest that match the search criteria.
Not all details are included with all responses. Some details may only be returned by specific data partners.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Place.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
addressNumber()
The numerical portion of an address, such as a building number.
|
static Place.Builder |
builder() |
List<String> |
categories()
The Amazon Location categories that describe this Place.
|
String |
country()
A country/region specified using ISO 3166 3-digit
country/region code.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
PlaceGeometry |
geometry()
Returns the value of the Geometry property for this object.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasCategories()
For responses, this returns true if the service returned a value for the Categories property.
|
int |
hashCode() |
boolean |
hasSupplementalCategories()
For responses, this returns true if the service returned a value for the SupplementalCategories property.
|
Boolean |
interpolated()
True if the result is interpolated from other known places. |
String |
label()
The full name and address of the point of interest such as a city, region, or country.
|
String |
municipality()
A name for a local area, such as a city or town name.
|
String |
neighborhood()
The name of a community district.
|
String |
postalCode()
A group of numbers and letters in a country-specific format, which accompanies the address for the purpose of
identifying a location.
|
String |
region()
A name for an area or geographical division, such as a province or state name.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Place.Builder> |
serializableBuilderClass() |
String |
street()
The name for a street or a road to identify a location.
|
String |
subRegion()
A county, or an area that's part of a larger region.
|
List<String> |
supplementalCategories()
Categories from the data provider that describe the Place that are not mapped to any Amazon Location categories.
|
TimeZone |
timeZone()
The time zone in which the
Place is located. |
Place.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
unitNumber()
For addresses with multiple units, the unit identifier.
|
String |
unitType()
For addresses with a
UnitNumber, the type of unit. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String addressNumber()
The numerical portion of an address, such as a building number.
public final boolean hasCategories()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<String> categories()
The Amazon Location categories that describe this Place.
For more information about using categories, including a list of Amazon Location categories, see Categories and filtering, in the Amazon Location Service Developer Guide.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasCategories() method.
For more information about using categories, including a list of Amazon Location categories, see Categories and filtering, in the Amazon Location Service Developer Guide.
public final String country()
A country/region specified using ISO 3166 3-digit
country/region code. For example, CAN.
CAN.public final PlaceGeometry geometry()
public final Boolean interpolated()
True if the result is interpolated from other known places.
False if the Place is a known place.
Not returned when the partner does not provide the information.
For example, returns False for an address location that is found in the partner data, but returns
True if an address does not exist in the partner data and its location is calculated by
interpolating between other known addresses.
True if the result is interpolated from other known places.
False if the Place is a known place.
Not returned when the partner does not provide the information.
For example, returns False for an address location that is found in the partner data, but
returns True if an address does not exist in the partner data and its location is calculated
by interpolating between other known addresses.
public final String label()
The full name and address of the point of interest such as a city, region, or country. For example,
123 Any Street, Any Town, USA.
123 Any Street, Any Town, USA.public final String municipality()
A name for a local area, such as a city or town name. For example, Toronto.
Toronto.public final String neighborhood()
The name of a community district. For example, Downtown.
Downtown.public final String postalCode()
A group of numbers and letters in a country-specific format, which accompanies the address for the purpose of identifying a location.
public final String region()
A name for an area or geographical division, such as a province or state name. For example,
British Columbia.
British Columbia.public final String street()
The name for a street or a road to identify a location. For example, Main Street.
Main Street.public final String subRegion()
A county, or an area that's part of a larger region. For example, Metro Vancouver.
Metro Vancouver.public final boolean hasSupplementalCategories()
isEmpty() method on the
property). This is useful because the SDK will never return a null collection or map, but you may need to
differentiate between the service returning nothing (or null) and the service returning an empty collection or
map. For requests, this returns true if a value for the property was specified in the request builder, and false
if a value was not specified.public final List<String> supplementalCategories()
Categories from the data provider that describe the Place that are not mapped to any Amazon Location categories.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasSupplementalCategories() method.
public final TimeZone timeZone()
The time zone in which the Place is located. Returned only when using HERE or Grab as the selected
partner.
Place is located. Returned only when using HERE or Grab as the
selected partner.public final String unitNumber()
For addresses with multiple units, the unit identifier. Can include numbers and letters, for example
3B or Unit 123.
Returned only for a place index that uses Esri or Grab as a data provider. Is not returned for
SearchPlaceIndexForPosition.
3B or Unit 123.
Returned only for a place index that uses Esri or Grab as a data provider. Is not returned for
SearchPlaceIndexForPosition.
public final String unitType()
For addresses with a UnitNumber, the type of unit. For example, Apartment.
Returned only for a place index that uses Esri as a data provider.
UnitNumber, the type of unit. For example, Apartment.
Returned only for a place index that uses Esri as a data provider.
public Place.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Place.Builder,Place>public static Place.Builder builder()
public static Class<? extends Place.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.