@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.
|
String |
getPlaceId()
The unique identifier of the place.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
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.
|
void |
setPlaceId(String placeId)
The unique identifier of the place.
|
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.
|
SearchForPositionResult |
withPlaceId(String placeId)
The unique identifier of the place.
|
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 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 setPlaceId(String placeId)
The unique identifier of the place. You can use this with the GetPlace
operation to find the place
again later.
For SearchPlaceIndexForPosition
operations, the PlaceId
is returned only by place
indexes that use HERE or Grab as a data provider.
placeId
- The unique identifier of the place. You can use this with the GetPlace
operation to find the
place again later.
For SearchPlaceIndexForPosition
operations, the PlaceId
is returned only by
place indexes that use HERE or Grab as a data provider.
public String getPlaceId()
The unique identifier of the place. You can use this with the GetPlace
operation to find the place
again later.
For SearchPlaceIndexForPosition
operations, the PlaceId
is returned only by place
indexes that use HERE or Grab as a data provider.
GetPlace
operation to find the
place again later.
For SearchPlaceIndexForPosition
operations, the PlaceId
is returned only by
place indexes that use HERE or Grab as a data provider.
public SearchForPositionResult withPlaceId(String placeId)
The unique identifier of the place. You can use this with the GetPlace
operation to find the place
again later.
For SearchPlaceIndexForPosition
operations, the PlaceId
is returned only by place
indexes that use HERE or Grab as a data provider.
placeId
- The unique identifier of the place. You can use this with the GetPlace
operation to find the
place again later.
For SearchPlaceIndexForPosition
operations, the PlaceId
is returned only by
place indexes that use HERE or Grab as a data provider.
public String toString()
toString
in class Object
Object.toString()
public SearchForPositionResult clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.