@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.
| 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() |
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) |
int |
hashCode() |
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 country, or an area that's part of a larger region.
|
TimeZone |
timeZone()
The time zone in which the
Place is located. |
Place.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String addressNumber()
The numerical portion of an address, such as a building number.
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 country, or an area that's part of a larger region. For example, Metro Vancouver.
Metro Vancouver.public final TimeZone timeZone()
The time zone in which the Place is located. Returned only when using Here as the selected partner.
Place is located. Returned only when using Here as the selected
partner.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 © 2022. All rights reserved.