@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SearchForTextResult extends Object implements Serializable, Cloneable, StructuredPojo
Contains a search result from a text search query that is run on a place index resource.
Constructor and Description |
---|
SearchForTextResult() |
Modifier and Type | Method and Description |
---|---|
SearchForTextResult |
clone() |
boolean |
equals(Object obj) |
Double |
getDistance()
The distance in meters of a great-circle arc between the bias position specified and the result.
|
Place |
getPlace()
Details about the search result, such as its address and position.
|
Double |
getRelevance()
The relative confidence in the match for a result among the results returned.
|
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 bias position specified and the result.
|
void |
setPlace(Place place)
Details about the search result, such as its address and position.
|
void |
setRelevance(Double relevance)
The relative confidence in the match for a result among the results returned.
|
String |
toString()
Returns a string representation of this object.
|
SearchForTextResult |
withDistance(Double distance)
The distance in meters of a great-circle arc between the bias position specified and the result.
|
SearchForTextResult |
withPlace(Place place)
Details about the search result, such as its address and position.
|
SearchForTextResult |
withRelevance(Double relevance)
The relative confidence in the match for a result among the results returned.
|
public void setDistance(Double distance)
The distance in meters of a great-circle arc between the bias position specified and the result.
Distance
will be returned only if a bias position was specified in the query.
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 bias position specified and the result.
Distance
will be returned only if a bias position was specified in the query. 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 bias position specified and the result.
Distance
will be returned only if a bias position was specified in the query.
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
will be returned only if a bias position was specified in the query. 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 SearchForTextResult withDistance(Double distance)
The distance in meters of a great-circle arc between the bias position specified and the result.
Distance
will be returned only if a bias position was specified in the query.
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 bias position specified and the result.
Distance
will be returned only if a bias position was specified in the query. 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 SearchForTextResult 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 setRelevance(Double relevance)
The relative confidence in the match for a result among the results returned. For example, if more fields for an address match (including house number, street, city, country/region, and postal code), the relevance score is closer to 1.
Returned only when the partner selected is Esri.
relevance
- The relative confidence in the match for a result among the results returned. For example, if more fields
for an address match (including house number, street, city, country/region, and postal code), the
relevance score is closer to 1.
Returned only when the partner selected is Esri.
public Double getRelevance()
The relative confidence in the match for a result among the results returned. For example, if more fields for an address match (including house number, street, city, country/region, and postal code), the relevance score is closer to 1.
Returned only when the partner selected is Esri.
Returned only when the partner selected is Esri.
public SearchForTextResult withRelevance(Double relevance)
The relative confidence in the match for a result among the results returned. For example, if more fields for an address match (including house number, street, city, country/region, and postal code), the relevance score is closer to 1.
Returned only when the partner selected is Esri.
relevance
- The relative confidence in the match for a result among the results returned. For example, if more fields
for an address match (including house number, street, city, country/region, and postal code), the
relevance score is closer to 1.
Returned only when the partner selected is Esri.
public String toString()
toString
in class Object
Object.toString()
public SearchForTextResult clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.