Class Place
- All Implemented Interfaces:
- Serializable,- SdkPojo,- 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.
- See Also:
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionfinal StringThe numerical portion of an address, such as a building number.static Place.Builderbuilder()The Amazon Location categories that describe this Place.final Stringcountry()A country/region specified using ISO 3166 3-digit country/region code.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final PlaceGeometrygeometry()Returns the value of the Geometry property for this object.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final booleanFor responses, this returns true if the service returned a value for the Categories property.final inthashCode()final booleanFor responses, this returns true if the service returned a value for the SupplementalCategories property.final BooleanTrueif the result is interpolated from other known places.final Stringlabel()The full name and address of the point of interest such as a city, region, or country.final StringA name for a local area, such as a city or town name.final StringThe name of a community district.final StringA group of numbers and letters in a country-specific format, which accompanies the address for the purpose of identifying a location.final Stringregion()A name for an area or geographical division, such as a province or state name.static Class<? extends Place.Builder> final Stringstreet()The name for a street or a road to identify a location.final StringAn area that's part of a larger municipality.final StringA county, or an area that's part of a larger region.Categories from the data provider that describe the Place that are not mapped to any Amazon Location categories.final TimeZonetimeZone()The time zone in which thePlaceis located.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final StringFor addresses with multiple units, the unit identifier.final StringunitType()For addresses with aUnitNumber, the type of unit.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuildercopy
- 
Method Details- 
labelThe full name and address of the point of interest such as a city, region, or country. For example, 123 Any Street, Any Town, USA.- Returns:
- 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.
 
- 
geometryReturns the value of the Geometry property for this object.- Returns:
- The value of the Geometry property for this object.
 
- 
addressNumberThe numerical portion of an address, such as a building number. - Returns:
- The numerical portion of an address, such as a building number.
 
- 
streetThe name for a street or a road to identify a location. For example, Main Street.- Returns:
- The name for a street or a road to identify a location. For example, Main Street.
 
- 
neighborhoodThe name of a community district. For example, Downtown.- Returns:
- The name of a community district. For example, Downtown.
 
- 
municipalityA name for a local area, such as a city or town name. For example, Toronto.- Returns:
- A name for a local area, such as a city or town name. For example, Toronto.
 
- 
subRegionA county, or an area that's part of a larger region. For example, Metro Vancouver.- Returns:
- A county, or an area that's part of a larger region. For example, Metro Vancouver.
 
- 
regionA name for an area or geographical division, such as a province or state name. For example, British Columbia.- Returns:
- A name for an area or geographical division, such as a province or state name. For example,
         British Columbia.
 
- 
country
- 
postalCodeA group of numbers and letters in a country-specific format, which accompanies the address for the purpose of identifying a location. - Returns:
- A group of numbers and letters in a country-specific format, which accompanies the address for the purpose of identifying a location.
 
- 
interpolatedTrueif the result is interpolated from other known places.Falseif the Place is a known place.Not returned when the partner does not provide the information. For example, returns Falsefor an address location that is found in the partner data, but returnsTrueif an address does not exist in the partner data and its location is calculated by interpolating between other known addresses.- Returns:
- Trueif the result is interpolated from other known places.- Falseif the Place is a known place.- Not returned when the partner does not provide the information. - For example, returns - Falsefor an address location that is found in the partner data, but returns- Trueif an address does not exist in the partner data and its location is calculated by interpolating between other known addresses.
 
- 
timeZoneThe time zone in which the Placeis located. Returned only when using HERE or Grab as the selected partner.- Returns:
- The time zone in which the Placeis located. Returned only when using HERE or Grab as the selected partner.
 
- 
unitTypeFor addresses with a UnitNumber, the type of unit. For example,Apartment.Returned only for a place index that uses Esri as a data provider. - Returns:
- 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. 
 
- 
unitNumberFor addresses with multiple units, the unit identifier. Can include numbers and letters, for example 3BorUnit 123.Returned only for a place index that uses Esri or Grab as a data provider. Is not returned for SearchPlaceIndexForPosition.- Returns:
- For addresses with multiple units, the unit identifier. Can include numbers and letters, for example
         3BorUnit 123.Returned only for a place index that uses Esri or Grab as a data provider. Is not returned for SearchPlaceIndexForPosition.
 
- 
hasCategoriespublic final boolean hasCategories()For responses, this returns true if the service returned a value for the Categories property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
- 
categoriesThe 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.- Returns:
- 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. 
 
- 
hasSupplementalCategoriespublic final boolean hasSupplementalCategories()For responses, this returns true if the service returned a value for the SupplementalCategories property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
- 
supplementalCategoriesCategories 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.- Returns:
- Categories from the data provider that describe the Place that are not mapped to any Amazon Location categories.
 
- 
subMunicipalityAn area that's part of a larger municipality. For example, Blissvilleis a submunicipality in the Queen County in New York.This property supported by Esri and OpenData. The Esri property is district, and the OpenData property isborough.- Returns:
- An area that's part of a larger municipality. For example, Blissvilleis a submunicipality in the Queen County in New York.This property supported by Esri and OpenData. The Esri property is district, and the OpenData property isborough.
 
- 
toBuilderDescription copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
- toBuilderin interface- ToCopyableBuilder<Place.Builder,- Place> 
- Returns:
- a builder for type T
 
- 
builder
- 
serializableBuilderClass
- 
hashCode
- 
equals
- 
equalsBySdkFieldsDescription copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
- equalsBySdkFieldsin interface- SdkPojo
- Parameters:
- obj- the object to be compared with
- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
 
- 
toString
- 
getValueForField
- 
sdkFields
- 
sdkFieldNameToField- Specified by:
- sdkFieldNameToFieldin interface- SdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
 
 
-