Class: Aws::GeoPlaces::Types::GeocodeQueryComponents

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

Overview

A structured free text query allows you to search for places by the name or text representation of specific properties of the place.

Constant Summary collapse

SENSITIVE =
[:country, :region, :sub_region, :locality, :district, :street, :address_number, :postal_code]

Instance Attribute Summary collapse

Instance Attribute Details

#address_numberString

The house number or address results should have.

Returns:

  • (String)


920
921
922
923
924
925
926
927
928
929
930
931
# File 'lib/aws-sdk-geoplaces/types.rb', line 920

class GeocodeQueryComponents < Struct.new(
  :country,
  :region,
  :sub_region,
  :locality,
  :district,
  :street,
  :address_number,
  :postal_code)
  SENSITIVE = [:country, :region, :sub_region, :locality, :district, :street, :address_number, :postal_code]
  include Aws::Structure
end

#countryString

The alpha-2 or alpha-3 character code for the country that the results will be present in.

Returns:

  • (String)


920
921
922
923
924
925
926
927
928
929
930
931
# File 'lib/aws-sdk-geoplaces/types.rb', line 920

class GeocodeQueryComponents < Struct.new(
  :country,
  :region,
  :sub_region,
  :locality,
  :district,
  :street,
  :address_number,
  :postal_code)
  SENSITIVE = [:country, :region, :sub_region, :locality, :district, :street, :address_number, :postal_code]
  include Aws::Structure
end

#districtString

The district or division of a city the results should be present in.

Returns:

  • (String)


920
921
922
923
924
925
926
927
928
929
930
931
# File 'lib/aws-sdk-geoplaces/types.rb', line 920

class GeocodeQueryComponents < Struct.new(
  :country,
  :region,
  :sub_region,
  :locality,
  :district,
  :street,
  :address_number,
  :postal_code)
  SENSITIVE = [:country, :region, :sub_region, :locality, :district, :street, :address_number, :postal_code]
  include Aws::Structure
end

#localityString

City or locality results should be present in.

Example: ‘Vancouver`.

Returns:

  • (String)


920
921
922
923
924
925
926
927
928
929
930
931
# File 'lib/aws-sdk-geoplaces/types.rb', line 920

class GeocodeQueryComponents < Struct.new(
  :country,
  :region,
  :sub_region,
  :locality,
  :district,
  :street,
  :address_number,
  :postal_code)
  SENSITIVE = [:country, :region, :sub_region, :locality, :district, :street, :address_number, :postal_code]
  include Aws::Structure
end

#postal_codeString

An alphanumeric string included in a postal address to facilitate mail sorting, such as post code, postcode, or ZIP code for which the result should posses.

Returns:

  • (String)


920
921
922
923
924
925
926
927
928
929
930
931
# File 'lib/aws-sdk-geoplaces/types.rb', line 920

class GeocodeQueryComponents < Struct.new(
  :country,
  :region,
  :sub_region,
  :locality,
  :district,
  :street,
  :address_number,
  :postal_code)
  SENSITIVE = [:country, :region, :sub_region, :locality, :district, :street, :address_number, :postal_code]
  include Aws::Structure
end

#regionString

The region or state results should be to be present in.

Example: ‘North Rhine-Westphalia`.

Returns:

  • (String)


920
921
922
923
924
925
926
927
928
929
930
931
# File 'lib/aws-sdk-geoplaces/types.rb', line 920

class GeocodeQueryComponents < Struct.new(
  :country,
  :region,
  :sub_region,
  :locality,
  :district,
  :street,
  :address_number,
  :postal_code)
  SENSITIVE = [:country, :region, :sub_region, :locality, :district, :street, :address_number, :postal_code]
  include Aws::Structure
end

#streetString

The name of the street results should be present in.

Returns:

  • (String)


920
921
922
923
924
925
926
927
928
929
930
931
# File 'lib/aws-sdk-geoplaces/types.rb', line 920

class GeocodeQueryComponents < Struct.new(
  :country,
  :region,
  :sub_region,
  :locality,
  :district,
  :street,
  :address_number,
  :postal_code)
  SENSITIVE = [:country, :region, :sub_region, :locality, :district, :street, :address_number, :postal_code]
  include Aws::Structure
end

#sub_regionString

The sub-region or county for which results should be present in.

Returns:

  • (String)


920
921
922
923
924
925
926
927
928
929
930
931
# File 'lib/aws-sdk-geoplaces/types.rb', line 920

class GeocodeQueryComponents < Struct.new(
  :country,
  :region,
  :sub_region,
  :locality,
  :district,
  :street,
  :address_number,
  :postal_code)
  SENSITIVE = [:country, :region, :sub_region, :locality, :district, :street, :address_number, :postal_code]
  include Aws::Structure
end