Class: Aws::GeoPlaces::Types::AutocompleteResultItem

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

Overview

A result matching the input query text.

Constant Summary collapse

SENSITIVE =
[:place_id, :place_type, :title, :distance, :political_view]

Instance Attribute Summary collapse

Instance Attribute Details

#addressTypes::Address

The address associated with this result.

Returns:



693
694
695
696
697
698
699
700
701
702
703
704
# File 'gems/aws-sdk-geoplaces/lib/aws-sdk-geoplaces/types.rb', line 693

class AutocompleteResultItem < Struct.new(
  :place_id,
  :place_type,
  :title,
  :address,
  :distance,
  :language,
  :political_view,
  :highlights)
  SENSITIVE = [:place_id, :place_type, :title, :distance, :political_view]
  include Aws::Structure
end

#distanceInteger

The distance in meters between the center of the search area and this result. Useful to evaluate how far away from the original bias position the result is.

Returns:

  • (Integer)


693
694
695
696
697
698
699
700
701
702
703
704
# File 'gems/aws-sdk-geoplaces/lib/aws-sdk-geoplaces/types.rb', line 693

class AutocompleteResultItem < Struct.new(
  :place_id,
  :place_type,
  :title,
  :address,
  :distance,
  :language,
  :political_view,
  :highlights)
  SENSITIVE = [:place_id, :place_type, :title, :distance, :political_view]
  include Aws::Structure
end

#highlightsTypes::AutocompleteHighlights

Indicates the starting and ending index of the place in the text query that match the found title.



693
694
695
696
697
698
699
700
701
702
703
704
# File 'gems/aws-sdk-geoplaces/lib/aws-sdk-geoplaces/types.rb', line 693

class AutocompleteResultItem < Struct.new(
  :place_id,
  :place_type,
  :title,
  :address,
  :distance,
  :language,
  :political_view,
  :highlights)
  SENSITIVE = [:place_id, :place_type, :title, :distance, :political_view]
  include Aws::Structure
end

#languageString

A list of BCP 47 compliant language codes for the results to be rendered in. If there is no data for the result in the requested language, data will be returned in the default language for the entry.

Returns:

  • (String)


693
694
695
696
697
698
699
700
701
702
703
704
# File 'gems/aws-sdk-geoplaces/lib/aws-sdk-geoplaces/types.rb', line 693

class AutocompleteResultItem < Struct.new(
  :place_id,
  :place_type,
  :title,
  :address,
  :distance,
  :language,
  :political_view,
  :highlights)
  SENSITIVE = [:place_id, :place_type, :title, :distance, :political_view]
  include Aws::Structure
end

#place_idString

The PlaceId of the place associated with this result. This can be used to look up additional details about the result via GetPlace.

Returns:

  • (String)


693
694
695
696
697
698
699
700
701
702
703
704
# File 'gems/aws-sdk-geoplaces/lib/aws-sdk-geoplaces/types.rb', line 693

class AutocompleteResultItem < Struct.new(
  :place_id,
  :place_type,
  :title,
  :address,
  :distance,
  :language,
  :political_view,
  :highlights)
  SENSITIVE = [:place_id, :place_type, :title, :distance, :political_view]
  include Aws::Structure
end

#place_typeString

PlaceType describes the type of result entry returned.

Returns:

  • (String)


693
694
695
696
697
698
699
700
701
702
703
704
# File 'gems/aws-sdk-geoplaces/lib/aws-sdk-geoplaces/types.rb', line 693

class AutocompleteResultItem < Struct.new(
  :place_id,
  :place_type,
  :title,
  :address,
  :distance,
  :language,
  :political_view,
  :highlights)
  SENSITIVE = [:place_id, :place_type, :title, :distance, :political_view]
  include Aws::Structure
end

#political_viewString

The alpha-2 or alpha-3 character code for the political view of a country. The political view applies to the results of the request to represent unresolved territorial claims through the point of view of the specified country.

Returns:

  • (String)


693
694
695
696
697
698
699
700
701
702
703
704
# File 'gems/aws-sdk-geoplaces/lib/aws-sdk-geoplaces/types.rb', line 693

class AutocompleteResultItem < Struct.new(
  :place_id,
  :place_type,
  :title,
  :address,
  :distance,
  :language,
  :political_view,
  :highlights)
  SENSITIVE = [:place_id, :place_type, :title, :distance, :political_view]
  include Aws::Structure
end

#titleString

A formatted string for display when presenting this result to an end user.

Returns:

  • (String)


693
694
695
696
697
698
699
700
701
702
703
704
# File 'gems/aws-sdk-geoplaces/lib/aws-sdk-geoplaces/types.rb', line 693

class AutocompleteResultItem < Struct.new(
  :place_id,
  :place_type,
  :title,
  :address,
  :distance,
  :language,
  :political_view,
  :highlights)
  SENSITIVE = [:place_id, :place_type, :title, :distance, :political_view]
  include Aws::Structure
end