Class SearchForPositionResult
- java.lang.Object
-
- software.amazon.awssdk.services.location.model.SearchForPositionResult
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<SearchForPositionResult.Builder,SearchForPositionResult>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSearchForPositionResult.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SearchForPositionResult.Builderbuilder()Doubledistance()The distance in meters of a great-circle arc between the query position and the result.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Placeplace()Details about the search result, such as its address and position.StringplaceId()The unique identifier of the place.List<SdkField<?>>sdkFields()static Class<? extends SearchForPositionResult.Builder>serializableBuilderClass()SearchForPositionResult.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
place
public final Place place()
Details about the search result, such as its address and position.
- Returns:
- Details about the search result, such as its address and position.
-
distance
public 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.
- Returns:
- 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.
-
placeId
public final String placeId()
The unique identifier of the place. You can use this with the
GetPlaceoperation to find the place again later.For
SearchPlaceIndexForPositionoperations, thePlaceIdis returned only by place indexes that use HERE or Grab as a data provider.- Returns:
- The unique identifier of the place. You can use this with the
GetPlaceoperation to find the place again later.For
SearchPlaceIndexForPositionoperations, thePlaceIdis returned only by place indexes that use HERE or Grab as a data provider.
-
toBuilder
public SearchForPositionResult.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<SearchForPositionResult.Builder,SearchForPositionResult>
-
builder
public static SearchForPositionResult.Builder builder()
-
serializableBuilderClass
public static Class<? extends SearchForPositionResult.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-