---
title: "POST /v2/autocomplete"
method: POST
path: "/v2/autocomplete"
---

# POST /v2/autocomplete

`POST /v2/autocomplete`

`Autocomplete` completes potential places and addresses as the user types, based on the partial input. The API enhances the efficiency and accuracy of address by completing query based on a few entered keystrokes. It helps you by completing partial queries with valid address completion. Also, the API supports the filtering of results based on geographic location, country, or specific place types, and can be tailored using optional parameters like language and political views. Not supported in `ap-southeast-1` and `ap-southeast-5` regions for [GrabMaps](https://docs.aws.amazon.com/location/latest/developerguide/GrabMaps.html) customers.

For more information, see [Autocomplete](https://docs.aws.amazon.com/location/latest/developerguide/autocomplete.html) in the _Amazon Location Service Developer Guide_.

## Query parameters

- `key` string, password

## Request body

- object
  - `QueryText` string, password, required — <p>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.</p> <note> <p>The fields <code>QueryText</code>, and <code>QueryID</code> are mutually exclusive.</p> </note>
  - `MaxResults` integer — <p>An optional limit for the number of results returned in a single call.</p> <p>Default value: 5</p>
  - `BiasPosition` Double[] — <p>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 <code>[lng, lat]</code> and in the WGS 84 format.</p> <note> <p>The fields <code>BiasPosition</code>, <code>FilterBoundingBox</code>, and <code>FilterCircle</code> are mutually exclusive.</p> </note>
  - `Filter` object — Autocomplete structure which contains a set of inclusion/exclusion properties that results must possess in order to be returned as a result.
    - `BoundingBox` Double[] — <p>The bounding box enclosing the geometric shape (area or line) that an individual result covers.</p> <p>The bounding box formed is defined as a set 4 coordinates: <code>[{westward lng}, {southern lat}, {eastward lng}, {northern lat}]</code> </p>
    - `Circle` FilterCircle — The <code>Circle</code> that all results must be in.
      - `Center` Double[], required — The center position in World Geodetic System (WGS 84) format: [longitude, latitude].
      - `Radius` integer, required — The radius, in meters, of the <code>FilterCircle</code>. For <a href="https://docs.aws.amazon.com/location/latest/developerguide/GrabMaps.html">GrabMaps</a> customers,<code>ap-southeast-1</code> and <code>ap-southeast-5</code> regions support only up to a maximum value of 300,000.
    - `IncludeCountries` CountryCode[] — A list of countries that all results must be in. Countries are represented by either their alpha-2 or alpha-3 character codes.
    - `IncludePlaceTypes` AutocompleteFilterPlaceType[] — The included place types.
  - `PostalCodeMode` 'MergeAllSpannedLocalities' | 'EnumerateSpannedLocalities' | 'EnumerateSpannedDistricts' — The <code>PostalCodeMode</code> affects how postal code results are returned. If a postal code spans multiple localities and this value is empty, partial district or locality information may be returned under a single postal code result entry. If it's populated with the value <code>EnumerateSpannedLocalities</code>, all cities in that postal code are returned. If it's populated with the value <code>EnumerateSpannedDistricts</code>, all combinations of the postal code with the corresponding district and city names are returned.
  - `AdditionalFeatures` AutocompleteAdditionalFeature[] — A list of optional additional parameters that can be requested for each result.
  - `Language` string — A list of <a href="https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry">BCP 47</a> 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.
  - `PoliticalView` string, password — <p>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.</p> <p>The following political views are currently supported:</p> <ul> <li> <p> <code>ARG</code>: Argentina's view on the Southern Patagonian Ice Field and Tierra Del Fuego, including the Falkland Islands, South Georgia, and South Sandwich Islands</p> </li> <li> <p> <code>EGY</code>: Egypt's view on Bir Tawil</p> </li> <li> <p> <code>IND</code>: India's view on Gilgit-Baltistan</p> </li> <li> <p> <code>KEN</code>: Kenya's view on the Ilemi Triangle</p> </li> <li> <p> <code>MAR</code>: Morocco's view on Western Sahara</p> </li> <li> <p> <code>RUS</code>: Russia's view on Crimea</p> </li> <li> <p> <code>SDN</code>: Sudan's view on the Halaib Triangle</p> </li> <li> <p> <code>SRB</code>: Serbia's view on Kosovo, Vukovar, and Sarengrad Islands</p> </li> <li> <p> <code>SUR</code>: Suriname's view on the Courantyne Headwaters and Lawa Headwaters</p> </li> <li> <p> <code>SYR</code>: Syria's view on the Golan Heights</p> </li> <li> <p> <code>TUR</code>: Turkey's view on Cyprus and Northern Cyprus</p> </li> <li> <p> <code>TZA</code>: Tanzania's view on Lake Malawi</p> </li> <li> <p> <code>URY</code>: Uruguay's view on Rincon de Artigas</p> </li> <li> <p> <code>VNM</code>: Vietnam's view on the Paracel Islands and Spratly Islands</p> </li> </ul>
  - `IntendedUse` 'SingleUse' — Indicates if the query results will be persisted in customer infrastructure. Defaults to <code>SingleUse</code> (not stored). Currently, <code>Autocomplete</code> does not support storage of results.

## Response `200`

Success

- AutocompleteResponse
  - `ResultItems` AutocompleteResultItem[] — List of places or results returned for a query.
    - `PlaceId` string, password, required — The PlaceId of the place associated with this result. This can be used to look up additional details about the result via GetPlace.
    - `PlaceType` 'Country' | 'Region' | 'SubRegion' | 'Locality' | 'District' | 'SubDistrict' | 'PostalCode' | 'Block' | 'SubBlock' | 'Intersection' | 'Street' | 'PointOfInterest' | 'PointAddress' | 'InterpolatedAddress' | 'SecondaryAddress' | 'InferredSecondaryAddress', password, required — PlaceType describes the type of result entry returned.
    - `Title` string, password, required — A formatted string for display when presenting this result to an end user.
    - `Address` object — The address associated with this result.
      - `Label` string, password — Assembled address value built out of the address components, according to the regional postal rules. This is the correctly formatted address.
      - `Country` object — The country component of the address.
        - `Code2` string, password — Country, represented by its alpha 2-character code.
        - `Code3` string, password — Country, represented by its alpha t-character code.
        - `Name` string, password — Name of the country.
      - `Region` object — <p>The region or state results should be present in. </p> <p>Example: <code>North Rhine-Westphalia</code>.</p>
        - `Code` string, password — <p> Abbreviated code for a the state, province or region of the country. Not available in <code>ap-southeast-1</code> and <code>ap-southeast-5</code> regions for <a href="https://docs.aws.amazon.com/location/latest/developerguide/GrabMaps.html">GrabMaps</a> customers. </p> <p>Example: <code>BC</code>.</p>
        - `Name` string, password — <p>Name for a the state, province, or region of the country. </p> <p>Example: <code>British Columbia</code>. </p>
      - `SubRegion` object — The sub-region or county for which results should be present in.
        - `Code` string, password — Abbreviated code for the county or sub-region. Not available in <code>ap-southeast-1</code> and <code>ap-southeast-5</code> regions for <a href="https://docs.aws.amazon.com/location/latest/developerguide/GrabMaps.html">GrabMaps</a> customers.
        - `Name` string, password — Name for the county or sub-region.
      - `Locality` string, password — <p>The city or locality of the address.</p> <p>Example: <code>Vancouver</code>.</p>
      - `District` string, password — The district or division of a locality associated with this address.
      - `SubDistrict` string, password — <p>A subdivision of a district. </p> <p>Example: <code>Minden-Lübbecke</code>.</p>
      - `PostalCode` string, password — 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 possess.
      - `Block` string, password — <p> Name of the block. Not available in <code>ap-southeast-1</code> and <code>ap-southeast-5</code> regions for <a href="https://docs.aws.amazon.com/location/latest/developerguide/GrabMaps.html">GrabMaps</a> customers. </p> <p>Example: <code>Sunny Mansion 203 block: 2 Chome</code> </p>
      - `SubBlock` string, password — <p> Name of sub-block. Not available in <code>ap-southeast-1</code> and <code>ap-southeast-5</code> regions for <a href="https://docs.aws.amazon.com/location/latest/developerguide/GrabMaps.html">GrabMaps</a> customers. </p> <p>Example: <code>Sunny Mansion 203 sub-block: 4</code> </p>
      - `Intersection` IntersectionStreet[] — <p> Name of the streets in the intersection. Not available in <code>ap-southeast-1</code> and <code>ap-southeast-5</code> regions for <a href="https://docs.aws.amazon.com/location/latest/developerguide/GrabMaps.html">GrabMaps</a> customers. </p> <p>Example: <code>["Friedrichstraße","Unter den Linden"]</code> </p>
      - `Street` string, password — The name of the street results should be present in.
      - `StreetComponents` StreetComponents[] — <p> Components of the street. Not available in <code>ap-southeast-1</code> and <code>ap-southeast-5</code> regions for <a href="https://docs.aws.amazon.com/location/latest/developerguide/GrabMaps.html">GrabMaps</a> customers. </p> <p>Example: Yonge from "Yonge street".</p>
        - `BaseName` string, password — <p>Base name part of the street name. </p> <p>Example: Younge from the "Younge street".</p>
        - `Type` string, password — <p>Street type part of the street name. </p> <p>Example: <code>"avenue"</code>.</p>
        - `TypePlacement` 'BeforeBaseName' | 'AfterBaseName' — Defines if the street type is before or after the base name.
        - `TypeSeparator` string — Defines a separator character such as <code>""</code> or <code>" "</code> between the base name and type.
        - `Prefix` string, password — <p>A prefix is a directional identifier that precedes, but is not included in, the base name of a road. </p> <p>Example: E for East.</p>
        - `Suffix` string, password — <p>A suffix is a directional identifier that follows, but is not included in, the base name of a road. </p> <p>Example W for West.</p>
        - `Direction` string, password — Indicates the official directional identifiers assigned to highways.
        - `Language` string — A <a href="https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry">BCP 47</a> 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, password — The number that identifies an address within a street.
      - `Building` string, password — The name of the building at the address. Not available in <code>ap-southeast-1</code> and <code>ap-southeast-5</code> regions for <a href="https://docs.aws.amazon.com/location/latest/developerguide/GrabMaps.html">GrabMaps</a> customers.
      - `SecondaryAddressComponents` SecondaryAddressComponent[] — <p> Components that correspond to secondary identifiers on an Address. Secondary address components include information such as Suite or Unit Number, Building, or Floor. Not available in <code>ap-southeast-1</code> and <code>ap-southeast-5</code> regions for <a href="https://docs.aws.amazon.com/location/latest/developerguide/GrabMaps.html">GrabMaps</a> customers. </p> <note> <p>Coverage for <code>Address.SecondaryAddressComponents</code> is available in the following countries:</p> <p>AUS, CAN, NZL, USA, PRI</p> </note>
        - `Number` string, password, required — Number that uniquely identifies a secondary address.
        - `Designator` string, password — <p>The designator of the secondary address component.</p> <p>Example: <code>Apt</code>.</p>
    - `Distance` integer — 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.
    - `Language` string — A list of <a href="https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry">BCP 47</a> 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.
    - `PoliticalView` string, password — 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.
    - `Highlights` object — Indicates the starting and ending index of the place in the text query that match the found title.
      - `Title` Highlight[] — Indicates where the title field in the result matches the input query.
        - `StartIndex` integer — Start index of the highlight.
        - `EndIndex` integer — End index of the highlight.
        - `Value` string, password — The highlight's value.
      - `Address` object — Describes how part of the result address match the input query.
        - `Label` Highlight[] — Indicates the starting and ending indexes for result items where they are identified to match the input query. This should be used to provide emphasis to output display to make selecting the correct result from a list easier for end users.
          - `StartIndex` integer — Start index of the highlight.
          - `EndIndex` integer — End index of the highlight.
          - `Value` string, password — The highlight's value.
        - `Country` object — The alpha-2 or alpha-3 character code for the country that the results will be present in.
          - `Code` Highlight[] — Indicates the starting and ending index of the country code in the text query that match the found title.
            - `StartIndex` integer — Start index of the highlight.
            - `EndIndex` integer — End index of the highlight.
            - `Value` string, password — The highlight's value.
          - `Name` Highlight[] — Indicates the starting and ending index of the country code in the text query that match the found title.
            - `StartIndex` integer — Start index of the highlight.
            - `EndIndex` integer — End index of the highlight.
            - `Value` string, password — The highlight's value.
        - `Region` object — <p>The region or state results should be to be present in. </p> <p>Example: <code>North Rhine-Westphalia</code>.</p>
          - `Code` Highlight[] — Indicates the starting and ending index of the region in the text query that match the found title.
            - `StartIndex` integer — Start index of the highlight.
            - `EndIndex` integer — End index of the highlight.
            - `Value` string, password — The highlight's value.
          - `Name` Highlight[] — Indicates the starting and ending index of the region name in the text query that match the found title.
            - `StartIndex` integer — Start index of the highlight.
            - `EndIndex` integer — End index of the highlight.
            - `Value` string, password — The highlight's value.
        - `SubRegion` object — The sub-region or county for which results should be present in.
          - `Code` Highlight[] — Indicates the starting and ending index of the sub-region in the text query that match the found title.
            - `StartIndex` integer — Start index of the highlight.
            - `EndIndex` integer — End index of the highlight.
            - `Value` string, password — The highlight's value.
          - `Name` Highlight[] — Indicates the starting and ending index of the name in the text query that match the found title.
            - `StartIndex` integer — Start index of the highlight.
            - `EndIndex` integer — End index of the highlight.
            - `Value` string, password — The highlight's value.
        - `Locality` Highlight[] — <p>The city or locality results should be present in. </p> <p>Example: <code>Vancouver</code>.</p>
          - `StartIndex` integer — Start index of the highlight.
          - `EndIndex` integer — End index of the highlight.
          - `Value` string, password — The highlight's value.
        - `District` Highlight[] — The district or division of a city the results should be present in.
          - `StartIndex` integer — Start index of the highlight.
          - `EndIndex` integer — End index of the highlight.
          - `Value` string, password — The highlight's value.
        - `SubDistrict` Highlight[] — Indicates the starting and ending index of the title in the text query that match the found title.
          - `StartIndex` integer — Start index of the highlight.
          - `EndIndex` integer — End index of the highlight.
          - `Value` string, password — The highlight's value.
        - `Street` Highlight[] — The name of the street results should be present in.
          - `StartIndex` integer — Start index of the highlight.
          - `EndIndex` integer — End index of the highlight.
          - `Value` string, password — The highlight's value.
        - `Block` Highlight[] — <p>Name of the block. </p> <p>Example: <code>Sunny Mansion 203 block: 2 Chome</code> </p>
          - `StartIndex` integer — Start index of the highlight.
          - `EndIndex` integer — End index of the highlight.
          - `Value` string, password — The highlight's value.
        - `SubBlock` Highlight[] — <p>Name of sub-block. </p> <p>Example: <code>Sunny Mansion 203 sub-block: 4</code> </p>
          - `StartIndex` integer — Start index of the highlight.
          - `EndIndex` integer — End index of the highlight.
          - `Value` string, password — The highlight's value.
        - `Intersection` HighlightList[] — Name of the streets in the intersection. For example: e.g. ["Friedrichstraße","Unter den Linden"]
          - Highlight[]
            - `StartIndex` integer — Start index of the highlight.
            - `EndIndex` integer — End index of the highlight.
            - `Value` string, password — The highlight's value.
        - `PostalCode` Highlight[] — 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 possess.
          - `StartIndex` integer — Start index of the highlight.
          - `EndIndex` integer — End index of the highlight.
          - `Value` string, password — The highlight's value.
        - `AddressNumber` Highlight[] — The house number or address results should have.
          - `StartIndex` integer — Start index of the highlight.
          - `EndIndex` integer — End index of the highlight.
          - `Value` string, password — The highlight's value.
        - `Building` Highlight[] — The name of the building at the address.
          - `StartIndex` integer — Start index of the highlight.
          - `EndIndex` integer — End index of the highlight.
          - `Value` string, password — The highlight's value.
    - `EstimatedPointAddress` boolean — If <code>true</code>, indicates that the coordinates of the position and access points of the point address are estimated.

## Other responses

- `480` — InternalServerException
- `481` — AccessDeniedException
- `482` — ValidationException
- `483` — ThrottlingException

---

[API](https://skmtc.net/aws/apis/geo-places.md) · [All operations](https://skmtc.net/aws/apis/geo-places/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/geo-places/versions/2c2d7ff49bea/schema)
