public class SearchPlaceIndexForPositionRequest extends AmazonWebServiceRequest implements java.io.Serializable
Reverse geocodes a given coordinate and returns a legible address. Allows you to search for Places or points of interest near a given position.
By using Places, you agree that AWS may transmit your API queries to your selected third party provider for processing, which may be outside the AWS region you are currently using.
Because of licensing limitations, you may not use HERE to store results for locations in Japan. For more information, see the AWS Service Terms for Amazon Location Service.
Constructor and Description |
---|
SearchPlaceIndexForPositionRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getIndexName()
The name of the Place index resource you want to use for the search.
|
java.lang.Integer |
getMaxResults()
An optional paramer.
|
java.util.List<java.lang.Double> |
getPosition()
Specifies a coordinate for the query defined by a longitude, and
latitude.
|
int |
hashCode() |
void |
setIndexName(java.lang.String indexName)
The name of the Place index resource you want to use for the search.
|
void |
setMaxResults(java.lang.Integer maxResults)
An optional paramer.
|
void |
setPosition(java.util.Collection<java.lang.Double> position)
Specifies a coordinate for the query defined by a longitude, and
latitude.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SearchPlaceIndexForPositionRequest |
withIndexName(java.lang.String indexName)
The name of the Place index resource you want to use for the search.
|
SearchPlaceIndexForPositionRequest |
withMaxResults(java.lang.Integer maxResults)
An optional paramer.
|
SearchPlaceIndexForPositionRequest |
withPosition(java.util.Collection<java.lang.Double> position)
Specifies a coordinate for the query defined by a longitude, and
latitude.
|
SearchPlaceIndexForPositionRequest |
withPosition(java.lang.Double... position)
Specifies a coordinate for the query defined by a longitude, and
latitude.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getIndexName()
The name of the Place index resource you want to use for the search.
Constraints:
Length: 1 - 100
Pattern: ^[-._\w]+$
The name of the Place index resource you want to use for the search.
public void setIndexName(java.lang.String indexName)
The name of the Place index resource you want to use for the search.
Constraints:
Length: 1 - 100
Pattern: ^[-._\w]+$
indexName
- The name of the Place index resource you want to use for the search.
public SearchPlaceIndexForPositionRequest withIndexName(java.lang.String indexName)
The name of the Place index resource you want to use for the search.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 100
Pattern: ^[-._\w]+$
indexName
- The name of the Place index resource you want to use for the search.
public java.lang.Integer getMaxResults()
An optional paramer. The maximum number of results returned per request.
Default value: 50
Constraints:
Range: 1 - 50
An optional paramer. The maximum number of results returned per request.
Default value: 50
public void setMaxResults(java.lang.Integer maxResults)
An optional paramer. The maximum number of results returned per request.
Default value: 50
Constraints:
Range: 1 - 50
maxResults
- An optional paramer. The maximum number of results returned per request.
Default value: 50
public SearchPlaceIndexForPositionRequest withMaxResults(java.lang.Integer maxResults)
An optional paramer. The maximum number of results returned per request.
Default value: 50
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 1 - 50
maxResults
- An optional paramer. The maximum number of results returned per request.
Default value: 50
public java.util.List<java.lang.Double> getPosition()
Specifies a coordinate for the query defined by a longitude, and latitude.
The first position is the X coordinate, or longitude.
The second position is the Y coordinate, or latitude.
For example, position=xLongitude&position=yLatitude
.
Specifies a coordinate for the query defined by a longitude, and latitude.
The first position is the X coordinate, or longitude.
The second position is the Y coordinate, or latitude.
For example,
position=xLongitude&position=yLatitude
.
public void setPosition(java.util.Collection<java.lang.Double> position)
Specifies a coordinate for the query defined by a longitude, and latitude.
The first position is the X coordinate, or longitude.
The second position is the Y coordinate, or latitude.
For example, position=xLongitude&position=yLatitude
.
position
- Specifies a coordinate for the query defined by a longitude, and latitude.
The first position is the X coordinate, or longitude.
The second position is the Y coordinate, or latitude.
For example,
position=xLongitude&position=yLatitude
.
public SearchPlaceIndexForPositionRequest withPosition(java.lang.Double... position)
Specifies a coordinate for the query defined by a longitude, and latitude.
The first position is the X coordinate, or longitude.
The second position is the Y coordinate, or latitude.
For example, position=xLongitude&position=yLatitude
.
Returns a reference to this object so that method calls can be chained together.
position
- Specifies a coordinate for the query defined by a longitude, and latitude.
The first position is the X coordinate, or longitude.
The second position is the Y coordinate, or latitude.
For example,
position=xLongitude&position=yLatitude
.
public SearchPlaceIndexForPositionRequest withPosition(java.util.Collection<java.lang.Double> position)
Specifies a coordinate for the query defined by a longitude, and latitude.
The first position is the X coordinate, or longitude.
The second position is the Y coordinate, or latitude.
For example, position=xLongitude&position=yLatitude
.
Returns a reference to this object so that method calls can be chained together.
position
- Specifies a coordinate for the query defined by a longitude, and latitude.
The first position is the X coordinate, or longitude.
The second position is the Y coordinate, or latitude.
For example,
position=xLongitude&position=yLatitude
.
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.