public class Place
extends java.lang.Object
implements java.io.Serializable
Contains details about addresses or points of interest that match the search criteria.
Constructor and Description |
---|
Place() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAddressNumber()
The numerical portion of an address, such as a building number.
|
java.lang.String |
getCountry()
A country/region specified using ISO 3166
3-digit country/region code.
|
PlaceGeometry |
getGeometry()
Places uses a point geometry to specify a location or a Place.
|
java.lang.String |
getLabel()
The full name and address of the point of interest such as a city,
region, or country.
|
java.lang.String |
getMunicipality()
A name for a local area, such as a city or town name.
|
java.lang.String |
getNeighborhood()
The name of a community district.
|
java.lang.String |
getPostalCode()
A group of numbers and letters in a country-specific format, which
accompanies the address for the purpose of identifying a location.
|
java.lang.String |
getRegion()
A name for an area or geographical division, such as a province or state
name.
|
java.lang.String |
getStreet()
The name for a street or a road to identify a location.
|
java.lang.String |
getSubRegion()
A country, or an area that's part of a larger region .
|
int |
hashCode() |
void |
setAddressNumber(java.lang.String addressNumber)
The numerical portion of an address, such as a building number.
|
void |
setCountry(java.lang.String country)
A country/region specified using ISO 3166
3-digit country/region code.
|
void |
setGeometry(PlaceGeometry geometry)
Places uses a point geometry to specify a location or a Place.
|
void |
setLabel(java.lang.String label)
The full name and address of the point of interest such as a city,
region, or country.
|
void |
setMunicipality(java.lang.String municipality)
A name for a local area, such as a city or town name.
|
void |
setNeighborhood(java.lang.String neighborhood)
The name of a community district.
|
void |
setPostalCode(java.lang.String postalCode)
A group of numbers and letters in a country-specific format, which
accompanies the address for the purpose of identifying a location.
|
void |
setRegion(java.lang.String region)
A name for an area or geographical division, such as a province or state
name.
|
void |
setStreet(java.lang.String street)
The name for a street or a road to identify a location.
|
void |
setSubRegion(java.lang.String subRegion)
A country, or an area that's part of a larger region .
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Place |
withAddressNumber(java.lang.String addressNumber)
The numerical portion of an address, such as a building number.
|
Place |
withCountry(java.lang.String country)
A country/region specified using ISO 3166
3-digit country/region code.
|
Place |
withGeometry(PlaceGeometry geometry)
Places uses a point geometry to specify a location or a Place.
|
Place |
withLabel(java.lang.String label)
The full name and address of the point of interest such as a city,
region, or country.
|
Place |
withMunicipality(java.lang.String municipality)
A name for a local area, such as a city or town name.
|
Place |
withNeighborhood(java.lang.String neighborhood)
The name of a community district.
|
Place |
withPostalCode(java.lang.String postalCode)
A group of numbers and letters in a country-specific format, which
accompanies the address for the purpose of identifying a location.
|
Place |
withRegion(java.lang.String region)
A name for an area or geographical division, such as a province or state
name.
|
Place |
withStreet(java.lang.String street)
The name for a street or a road to identify a location.
|
Place |
withSubRegion(java.lang.String subRegion)
A country, or an area that's part of a larger region .
|
public java.lang.String getAddressNumber()
The numerical portion of an address, such as a building number.
The numerical portion of an address, such as a building number.
public void setAddressNumber(java.lang.String addressNumber)
The numerical portion of an address, such as a building number.
addressNumber
- The numerical portion of an address, such as a building number.
public Place withAddressNumber(java.lang.String addressNumber)
The numerical portion of an address, such as a building number.
Returns a reference to this object so that method calls can be chained together.
addressNumber
- The numerical portion of an address, such as a building number.
public java.lang.String getCountry()
A country/region specified using ISO 3166
3-digit country/region code. For example, CAN
.
A country/region specified using ISO
3166 3-digit country/region code. For example,
CAN
.
public void setCountry(java.lang.String country)
A country/region specified using ISO 3166
3-digit country/region code. For example, CAN
.
country
-
A country/region specified using ISO
3166 3-digit country/region code. For example,
CAN
.
public Place withCountry(java.lang.String country)
A country/region specified using ISO 3166
3-digit country/region code. For example, CAN
.
Returns a reference to this object so that method calls can be chained together.
country
-
A country/region specified using ISO
3166 3-digit country/region code. For example,
CAN
.
public PlaceGeometry getGeometry()
Places uses a point geometry to specify a location or a Place.
Places uses a point geometry to specify a location or a Place.
public void setGeometry(PlaceGeometry geometry)
Places uses a point geometry to specify a location or a Place.
geometry
- Places uses a point geometry to specify a location or a Place.
public Place withGeometry(PlaceGeometry geometry)
Places uses a point geometry to specify a location or a Place.
Returns a reference to this object so that method calls can be chained together.
geometry
- Places uses a point geometry to specify a location or a Place.
public java.lang.String getLabel()
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
.
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
.
public void setLabel(java.lang.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
.
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
.
public Place withLabel(java.lang.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
.
Returns a reference to this object so that method calls can be chained together.
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
.
public java.lang.String getMunicipality()
A name for a local area, such as a city or town name. For example,
Toronto
.
A name for a local area, such as a city or town name. For
example, Toronto
.
public void setMunicipality(java.lang.String municipality)
A name for a local area, such as a city or town name. For example,
Toronto
.
municipality
-
A name for a local area, such as a city or town name. For
example, Toronto
.
public Place withMunicipality(java.lang.String municipality)
A name for a local area, such as a city or town name. For example,
Toronto
.
Returns a reference to this object so that method calls can be chained together.
municipality
-
A name for a local area, such as a city or town name. For
example, Toronto
.
public java.lang.String getNeighborhood()
The name of a community district. For example, Downtown
.
The name of a community district. For example,
Downtown
.
public void setNeighborhood(java.lang.String neighborhood)
The name of a community district. For example, Downtown
.
neighborhood
-
The name of a community district. For example,
Downtown
.
public Place withNeighborhood(java.lang.String neighborhood)
The name of a community district. For example, Downtown
.
Returns a reference to this object so that method calls can be chained together.
neighborhood
-
The name of a community district. For example,
Downtown
.
public java.lang.String getPostalCode()
A group of numbers and letters in a country-specific format, which accompanies the address for the purpose of identifying a location.
A group of numbers and letters in a country-specific format, which accompanies the address for the purpose of identifying a location.
public void setPostalCode(java.lang.String postalCode)
A group of numbers and letters in a country-specific format, which accompanies the address for the purpose of identifying a location.
postalCode
- A group of numbers and letters in a country-specific format, which accompanies the address for the purpose of identifying a location.
public Place withPostalCode(java.lang.String postalCode)
A group of numbers and letters in a country-specific format, which accompanies the address for the purpose of identifying a location.
Returns a reference to this object so that method calls can be chained together.
postalCode
- A group of numbers and letters in a country-specific format, which accompanies the address for the purpose of identifying a location.
public java.lang.String getRegion()
A name for an area or geographical division, such as a province or state
name. For example, British Columbia
.
A name for an area or geographical division, such as a province
or state name. For example, British Columbia
.
public void setRegion(java.lang.String region)
A name for an area or geographical division, such as a province or state
name. For example, British Columbia
.
region
-
A name for an area or geographical division, such as a
province or state name. For example,
British Columbia
.
public Place withRegion(java.lang.String region)
A name for an area or geographical division, such as a province or state
name. For example, British Columbia
.
Returns a reference to this object so that method calls can be chained together.
region
-
A name for an area or geographical division, such as a
province or state name. For example,
British Columbia
.
public java.lang.String getStreet()
The name for a street or a road to identify a location. For example,
Main Street
.
The name for a street or a road to identify a location. For
example, Main Street
.
public void setStreet(java.lang.String street)
The name for a street or a road to identify a location. For example,
Main Street
.
street
-
The name for a street or a road to identify a location. For
example, Main Street
.
public Place withStreet(java.lang.String street)
The name for a street or a road to identify a location. For example,
Main Street
.
Returns a reference to this object so that method calls can be chained together.
street
-
The name for a street or a road to identify a location. For
example, Main Street
.
public java.lang.String getSubRegion()
A country, or an area that's part of a larger region . For example,
Metro Vancouver
.
A country, or an area that's part of a larger region . For
example, Metro Vancouver
.
public void setSubRegion(java.lang.String subRegion)
A country, or an area that's part of a larger region . For example,
Metro Vancouver
.
subRegion
-
A country, or an area that's part of a larger region . For
example, Metro Vancouver
.
public Place withSubRegion(java.lang.String subRegion)
A country, or an area that's part of a larger region . For example,
Metro Vancouver
.
Returns a reference to this object so that method calls can be chained together.
subRegion
-
A country, or an area that's part of a larger region . For
example, Metro Vancouver
.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.