Class: Aws::LocationService::Types::SearchForPositionResult

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-locationservice/lib/aws-sdk-locationservice/types.rb

Overview

Contains a search result from a position search query that is run on a place index resource.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#distanceFloat

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:

  • (Float)


5218
5219
5220
5221
5222
5223
5224
# File 'gems/aws-sdk-locationservice/lib/aws-sdk-locationservice/types.rb', line 5218

class SearchForPositionResult < Struct.new(
  :distance,
  :place,
  :place_id)
  SENSITIVE = []
  include Aws::Structure
end

#placeTypes::Place

Details about the search result, such as its address and position.

Returns:



5218
5219
5220
5221
5222
5223
5224
# File 'gems/aws-sdk-locationservice/lib/aws-sdk-locationservice/types.rb', line 5218

class SearchForPositionResult < Struct.new(
  :distance,
  :place,
  :place_id)
  SENSITIVE = []
  include Aws::Structure
end

#place_idString

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.

Returns:

  • (String)


5218
5219
5220
5221
5222
5223
5224
# File 'gems/aws-sdk-locationservice/lib/aws-sdk-locationservice/types.rb', line 5218

class SearchForPositionResult < Struct.new(
  :distance,
  :place,
  :place_id)
  SENSITIVE = []
  include Aws::Structure
end