Note:

You are viewing the documentation for an older major version of the AWS CLI (version 1).

AWS CLI version 2, the latest major version of AWS CLI, is now stable and recommended for general use. To view this page for the AWS CLI version 2, click here. For more information see the AWS CLI version 2 installation instructions and migration guide.

[ aws . geo-places ]

search-text

Description

Use the SearchText operation to search for geocode and place information. You can then complete a follow-up query suggested from the Suggest API via a query id.

See also: AWS API Documentation

Synopsis

  search-text
[--query-text <value>]
[--query-id <value>]
[--max-results <value>]
[--bias-position <value>]
[--filter <value>]
[--additional-features <value>]
[--language <value>]
[--political-view <value>]
[--intended-use <value>]
[--next-token <value>]
[--key <value>]
[--cli-input-json <value>]
[--generate-cli-skeleton <value>]
[--debug]
[--endpoint-url <value>]
[--no-verify-ssl]
[--no-paginate]
[--output <value>]
[--query <value>]
[--profile <value>]
[--region <value>]
[--version <value>]
[--color <value>]
[--no-sign-request]
[--ca-bundle <value>]
[--cli-read-timeout <value>]
[--cli-connect-timeout <value>]

Options

--query-text (string)

The free-form text query to match addresses against. This is usually a partially typed address from an end user in an address box or form.

--query-id (string)

The query Id.

--max-results (integer)

An optional limit for the number of results returned in a single call.

--bias-position (list)

The position, in longitude and latitude, that the results should be close to. Typically, place results returned are ranked higher the closer they are to this position. Stored in [lng, lat] and in the WSG84 format.

Note

The fields BiasPosition , FilterBoundingBox , and FilterCircle are mutually exclusive.

(double)

Syntax:

double double ...

--filter (structure)

A structure which contains a set of inclusion/exclusion properties that results must posses in order to be returned as a result.

BoundingBox -> (list)

The bounding box enclosing the geometric shape (area or line) that an individual result covers.

The bounding box formed is defined as a set 4 coordinates: [{westward lng}, {southern lat}, {eastward lng}, {northern lat}]

(double)

Circle -> (structure)

The Circle that all results must be in.

Center -> (list)

The center position, in longitude and latitude, of the FilterCircle .

(double)

Radius -> (long)

The radius, in meters, of the FilterCircle .

IncludeCountries -> (list)

A list of countries that all results must be in. Countries are represented by either their alpha-2 or alpha-3 character codes.

(string)

Shorthand Syntax:

BoundingBox=double,double,Circle={Center=[double,double],Radius=long},IncludeCountries=string,string

JSON Syntax:

{
  "BoundingBox": [double, ...],
  "Circle": {
    "Center": [double, ...],
    "Radius": long
  },
  "IncludeCountries": ["string", ...]
}

--additional-features (list)

A list of optional additional parameters, such as time zone, that can be requested for each result.

(string)

Syntax:

"string" "string" ...

Where valid values are:
  TimeZone
  Phonemes
  Access
  Contact

--language (string)

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.

--political-view (string)

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.

--intended-use (string)

Indicates if the results will be stored. Defaults to SingleUse , if left empty.

Possible values:

  • SingleUse
  • Storage

--next-token (string)

If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page.

--key (string)

Optional: The API key to be used for authorization. Either an API key or valid SigV4 signature must be provided when making a request.

--cli-input-json (string) Performs service operation based on the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, the CLI values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally.

--generate-cli-skeleton (string) Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input, prints a sample input JSON that can be used as an argument for --cli-input-json. If provided with the value output, it validates the command inputs and returns a sample output JSON for that command.

Global Options

--debug (boolean)

Turn on debug logging.

--endpoint-url (string)

Override command's default URL with the given URL.

--no-verify-ssl (boolean)

By default, the AWS CLI uses SSL when communicating with AWS services. For each SSL connection, the AWS CLI will verify SSL certificates. This option overrides the default behavior of verifying SSL certificates.

--no-paginate (boolean)

Disable automatic pagination. If automatic pagination is disabled, the AWS CLI will only make one call, for the first page of results.

--output (string)

The formatting style for command output.

  • json
  • text
  • table

--query (string)

A JMESPath query to use in filtering the response data.

--profile (string)

Use a specific profile from your credential file.

--region (string)

The region to use. Overrides config/env settings.

--version (string)

Display the version of this tool.

--color (string)

Turn on/off color output.

  • on
  • off
  • auto

--no-sign-request (boolean)

Do not sign requests. Credentials will not be loaded if this argument is provided.

--ca-bundle (string)

The CA certificate bundle to use when verifying SSL certificates. Overrides config/env settings.

--cli-read-timeout (int)

The maximum socket read time in seconds. If the value is set to 0, the socket read will be blocking and not timeout. The default value is 60 seconds.

--cli-connect-timeout (int)

The maximum socket connect time in seconds. If the value is set to 0, the socket connect will be blocking and not timeout. The default value is 60 seconds.

Output

PricingBucket -> (string)

The pricing bucket for which the query is charged at.

For more inforamtion on pricing, please visit Amazon Location Service Pricing .

ResultItems -> (list)

List of places or results returned for a query.

(structure)

The text search result.

PlaceId -> (string)

The PlaceId of the place you wish to receive the information for.

PlaceType -> (string)

A PlaceType is a category that the result place must belong to.

Title -> (string)

The item's title.

Address -> (structure)

The place's address.

Label -> (string)

Assembled address value built out of the address components, according to the regional postal rules. This is the correctly formatted address.

Country -> (structure)

The country component of the address.

Code2 -> (string)

Country, represented by its alpha 2-character code.

Code3 -> (string)

Country, represented by its alpha t-character code.

Name -> (string)

Name of the country.

Region -> (structure)

The region or state results should be present in.

Example: North Rhine-Westphalia .

Code -> (string)

Abbreviated code for a the state, province or region of the country.

Example: BC .

Name -> (string)

Name for a the state, province, or region of the country.

Example: British Columbia .

SubRegion -> (structure)

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

Code -> (string)

Abbreviated code for the county or sub-region.

Name -> (string)

Name for the county or sub-region.

Locality -> (string)

The locality or city of the address.

Example: Vancouver .

District -> (string)

The district or division of a locality associated with this address.

SubDistrict -> (string)

A subdivision of a district.

Example: Minden-Lübbecke .

PostalCode -> (string)

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.

Block -> (string)

Name of the block.

Example: Sunny Mansion 203 block: 2 Chome

SubBlock -> (string)

Name of sub-block.

Example: Sunny Mansion 203 sub-block: 4

Intersection -> (list)

Name of the streets in the intersection.

Example: ["Friedrichstraße","Unter den Linden"]

(string)

Street -> (string)

The name of the street results should be present in.

StreetComponents -> (list)

Components of the street.

Example: Younge from the "Younge street".

(structure)

Components of a street.

BaseName -> (string)

Base name part of the street name.

Example: Younge from the “Younge street".

Type -> (string)

Street type part of the street name.

Example: “avenue" .

TypePlacement -> (string)

Defines if the street type is before or after the base name.

TypeSeparator -> (string)

What character(s) separates the string from its type.

Prefix -> (string)

A prefix is a directional identifier that precedes, but is not included in, the base name of a road.

Example: E for East.

Suffix -> (string)

A suffix is a directional identifier that follows, but is not included in, the base name of a road.

Example W for West.

Direction -> (string)

Indicates the official directional identifiers assigned to highways.

Language -> (string)

A 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.

AddressNumber -> (string)

The number that identifies an address within a street.

Building -> (string)

The name of the building at the address.

AddressNumberCorrected -> (boolean)

Boolean indicating if the address provided has been corrected.

Position -> (list)

The position, in longitude and latitude.

(double)

Distance -> (long)

The distance in meters from the QueryPosition.

MapView -> (list)

The bounding box enclosing the geometric shape (area or line) that an individual result covers.

The bounding box formed is defined as a set 4 coordinates: [{westward lng}, {southern lat}, {eastward lng}, {northern lat}]

(double)

Categories -> (list)

Categories of results that results must belong to.

(structure)

Category of the Place returned.

Id -> (string)

The category ID.

Name -> (string)

The category name.

LocalizedName -> (string)

Localized name of the category type.

Primary -> (boolean)

Boolean which indicates if this category is the primary offered by the place.

FoodTypes -> (list)

List of food types offered by this result.

(structure)

List of Food types offered by this result.

LocalizedName -> (string)

Localized name of the food type.

Id -> (string)

The Food Type Id.

Primary -> (boolean)

Boolean which indicates if this food type is the primary offered by the place. For example, if a location serves fast food, but also dessert, he primary would likely be fast food.

BusinessChains -> (list)

The Business Chains associated with the place.

(structure)

A businesschain is a chain of businesses that belong to the same brand. For example 7-11 .

Name -> (string)

The business chain name.

Id -> (string)

The Business Chain Id.

Contacts -> (structure)

List of potential contact methods for the result/place.

Phones -> (list)

List of phone numbers for the results contact.

(structure)

Details related to contacts.

Label -> (string)

The contact's label.

Value -> (string)

The contact's value.

Categories -> (list)

Categories of results that results must belong too.

(structure)

Category of the Place returned.

Id -> (string)

The category ID.

Name -> (string)

The category name.

LocalizedName -> (string)

Localized name of the category type.

Primary -> (boolean)

Boolean which indicates if this category is the primary offered by the place.

Faxes -> (list)

List of fax addresses for the result contact.

(structure)

Details related to contacts.

Label -> (string)

The contact's label.

Value -> (string)

The contact's value.

Categories -> (list)

Categories of results that results must belong too.

(structure)

Category of the Place returned.

Id -> (string)

The category ID.

Name -> (string)

The category name.

LocalizedName -> (string)

Localized name of the category type.

Primary -> (boolean)

Boolean which indicates if this category is the primary offered by the place.

Websites -> (list)

List of website URLs that belong to the result.

(structure)

Details related to contacts.

Label -> (string)

The contact's label.

Value -> (string)

The contact's value.

Categories -> (list)

Categories of results that results must belong too.

(structure)

Category of the Place returned.

Id -> (string)

The category ID.

Name -> (string)

The category name.

LocalizedName -> (string)

Localized name of the category type.

Primary -> (boolean)

Boolean which indicates if this category is the primary offered by the place.

Emails -> (list)

List of emails for contacts of the result.

(structure)

Details related to contacts.

Label -> (string)

The contact's label.

Value -> (string)

The contact's value.

Categories -> (list)

Categories of results that results must belong too.

(structure)

Category of the Place returned.

Id -> (string)

The category ID.

Name -> (string)

The category name.

LocalizedName -> (string)

Localized name of the category type.

Primary -> (boolean)

Boolean which indicates if this category is the primary offered by the place.

OpeningHours -> (list)

List of opening hours objects.

(structure)

List of opening hours objects.

Display -> (list)

List of opening hours in the format they are displayed in. This can vary by result and in most cases represents how the result uniquely formats their opening hours.

(string)

OpenNow -> (boolean)

Boolean which indicates if the result/place is currently open.

Components -> (list)

Components of the opening hours object.

(structure)

Components of the opening hours object.

OpenTime -> (string)

String which represents the opening hours, such as "T070000" .

OpenDuration -> (string)

String which represents the duration of the opening period, such as "PT12H00M" .

Recurrence -> (string)

Days or periods when the provided opening hours are in affect.

Example: FREQ:DAILY;BYDAY:MO,TU,WE,TH,SU

Categories -> (list)

Categories of results that results must belong too.

(structure)

Category of the Place returned.

Id -> (string)

The category ID.

Name -> (string)

The category name.

LocalizedName -> (string)

Localized name of the category type.

Primary -> (boolean)

Boolean which indicates if this category is the primary offered by the place.

AccessPoints -> (list)

Position of the access point represent by longitude and latitude.

(structure)

Position of the access point represented by longitude and latitude for a vehicle.

Position -> (list)

The position, in longitude and latitude.

(double)

AccessRestrictions -> (list)

Indicates known access restrictions on a vehicle access point. The index correlates to an access point and indicates if access through this point has some form of restriction.

(structure)

Indicates if the access location is restricted. Index correlates to that of an access point and indicates if access through this point has some form of restriction.

Restricted -> (boolean)

The restriction.

Categories -> (list)

Categories of results that results must belong too.

(structure)

Category of the Place returned.

Id -> (string)

The category ID.

Name -> (string)

The category name.

LocalizedName -> (string)

Localized name of the category type.

Primary -> (boolean)

Boolean which indicates if this category is the primary offered by the place.

TimeZone -> (structure)

The time zone in which the place is located.

Name -> (string)

The time zone name.

Offset -> (string)

Time zone offset of the timezone from UTC.

OffsetSeconds -> (long)

The offset of the time zone from UTC, in seconds.

PoliticalView -> (string)

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.

Phonemes -> (structure)

How the various components of the result's address are pronounced in various languages.

Title -> (list)

List of PhonemeTranscription . See PhonemeTranscription for fields.

(structure)

How to pronounce the various components of the address or place.

Value -> (string)

Value which indicates how to pronounce the value.

Language -> (string)

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.

Preferred -> (boolean)

Boolean which indicates if it the preferred pronunciation.

Address -> (structure)

How to pronounce the address.

Country -> (list)

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

(structure)

How to pronounce the various components of the address or place.

Value -> (string)

Value which indicates how to pronounce the value.

Language -> (string)

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.

Preferred -> (boolean)

Boolean which indicates if it the preferred pronunciation.

Region -> (list)

How to pronounce the region or state results should be to be present in.

(structure)

How to pronounce the various components of the address or place.

Value -> (string)

Value which indicates how to pronounce the value.

Language -> (string)

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.

Preferred -> (boolean)

Boolean which indicates if it the preferred pronunciation.

SubRegion -> (list)

How to pronounce the sub-region or county for which results should be present in.

(structure)

How to pronounce the various components of the address or place.

Value -> (string)

Value which indicates how to pronounce the value.

Language -> (string)

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.

Preferred -> (boolean)

Boolean which indicates if it the preferred pronunciation.

Locality -> (list)

How to pronounce the city or locality results should be present in.

Example: Vancouver .

(structure)

How to pronounce the various components of the address or place.

Value -> (string)

Value which indicates how to pronounce the value.

Language -> (string)

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.

Preferred -> (boolean)

Boolean which indicates if it the preferred pronunciation.

District -> (list)

How to pronounce the district or division of a city results should be present in.

(structure)

How to pronounce the various components of the address or place.

Value -> (string)

Value which indicates how to pronounce the value.

Language -> (string)

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.

Preferred -> (boolean)

Boolean which indicates if it the preferred pronunciation.

SubDistrict -> (list)

How to pronounce the sub-district or division of a city results should be present in.

(structure)

How to pronounce the various components of the address or place.

Value -> (string)

Value which indicates how to pronounce the value.

Language -> (string)

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.

Preferred -> (boolean)

Boolean which indicates if it the preferred pronunciation.

Block -> (list)

How to pronounce the name of the block.

(structure)

How to pronounce the various components of the address or place.

Value -> (string)

Value which indicates how to pronounce the value.

Language -> (string)

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.

Preferred -> (boolean)

Boolean which indicates if it the preferred pronunciation.

SubBlock -> (list)

How to pronounce the name of the sub-block.

(structure)

How to pronounce the various components of the address or place.

Value -> (string)

Value which indicates how to pronounce the value.

Language -> (string)

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.

Preferred -> (boolean)

Boolean which indicates if it the preferred pronunciation.

Street -> (list)

How to pronounce the name of the street results should be present in.

(structure)

How to pronounce the various components of the address or place.

Value -> (string)

Value which indicates how to pronounce the value.

Language -> (string)

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.

Preferred -> (boolean)

Boolean which indicates if it the preferred pronunciation.

NextToken -> (string)

If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page.