Interface SearchForPositionResult.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SearchForPositionResult.Builder,,SearchForPositionResult> SdkBuilder<SearchForPositionResult.Builder,,SearchForPositionResult> SdkPojo
- Enclosing class:
SearchForPositionResult
-
Method Summary
Modifier and TypeMethodDescriptionThe distance in meters of a great-circle arc between the query position and the result.default SearchForPositionResult.Builderplace(Consumer<Place.Builder> place) Details about the search result, such as its address and position.Details about the search result, such as its address and position.The unique identifier of the place.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
place
Details about the search result, such as its address and position.
- Parameters:
place- Details about the search result, such as its address and position.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
place
Details about the search result, such as its address and position.
This is a convenience method that creates an instance of thePlace.Builderavoiding the need to create one manually viaPlace.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toplace(Place).- Parameters:
place- a consumer that will call methods onPlace.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
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.- Parameters:
placeId- The unique identifier of the place. You can use this with theGetPlaceoperation to find the place again later.For
SearchPlaceIndexForPositionoperations, thePlaceIdis returned only by place indexes that use HERE or Grab as a data provider.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-