@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SearchForPositionResult extends Object implements Serializable, Cloneable, StructuredPojo
Contains a search result from a position search query that is run on a place index resource.
| Constructor and Description |
|---|
SearchForPositionResult() |
| Modifier and Type | Method and Description |
|---|---|
SearchForPositionResult |
clone() |
boolean |
equals(Object obj) |
Double |
getDistance()
The distance in meters of a great-circle arc between the query position and the result.
|
Place |
getPlace()
Details about the search result, such as its address and position.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setDistance(Double distance)
The distance in meters of a great-circle arc between the query position and the result.
|
void |
setPlace(Place place)
Details about the search result, such as its address and position.
|
String |
toString()
Returns a string representation of this object.
|
SearchForPositionResult |
withDistance(Double distance)
The distance in meters of a great-circle arc between the query position and the result.
|
SearchForPositionResult |
withPlace(Place place)
Details about the search result, such as its address and position.
|
public void setDistance(Double distance)
The distance in meters of a great-circle arc between the query position and the result.
A great-circle arc is the shortest path on a sphere, in this case the Earth. This returns the shortest distance between two locations.
distance - The distance in meters of a great-circle arc between the query position and the result. A great-circle arc is the shortest path on a sphere, in this case the Earth. This returns the shortest distance between two locations.
public Double getDistance()
The distance in meters of a great-circle arc between the query position and the result.
A great-circle arc is the shortest path on a sphere, in this case the Earth. This returns the shortest distance between two locations.
A great-circle arc is the shortest path on a sphere, in this case the Earth. This returns the shortest distance between two locations.
public SearchForPositionResult withDistance(Double distance)
The distance in meters of a great-circle arc between the query position and the result.
A great-circle arc is the shortest path on a sphere, in this case the Earth. This returns the shortest distance between two locations.
distance - The distance in meters of a great-circle arc between the query position and the result. A great-circle arc is the shortest path on a sphere, in this case the Earth. This returns the shortest distance between two locations.
public void setPlace(Place place)
Details about the search result, such as its address and position.
place - Details about the search result, such as its address and position.public Place getPlace()
Details about the search result, such as its address and position.
public SearchForPositionResult withPlace(Place place)
Details about the search result, such as its address and position.
place - Details about the search result, such as its address and position.public String toString()
toString in class ObjectObject.toString()public SearchForPositionResult clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2021. All rights reserved.