@Generated(value="software.amazon.awssdk:codegen") public final class SearchForPositionResult extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SearchForPositionResult.Builder,SearchForPositionResult>
Contains a search result from a position search query that is run on a place index resource.
| Modifier and Type | Class and Description |
|---|---|
static interface |
SearchForPositionResult.Builder |
| Modifier and Type | Method and Description |
|---|---|
static SearchForPositionResult.Builder |
builder() |
Double |
distance()
The distance in meters of a great-circle arc between the query position and the result.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Place |
place()
Details about the search result, such as its address and position.
|
String |
placeId()
The unique identifier of the place.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends SearchForPositionResult.Builder> |
serializableBuilderClass() |
SearchForPositionResult.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final 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.
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 final Place place()
Details about the search result, such as its address and position.
public final 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.
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.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<SearchForPositionResult.Builder,SearchForPositionResult>public static SearchForPositionResult.Builder builder()
public static Class<? extends SearchForPositionResult.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.