The Autocomplete search type is optimized to search as a user types. Users can enter addresses quickly and easily, using a real-time suggestions list and fuzzy matching, along with Location-biasing in certain countries, while delimiters such as commas and dashes are handled accurately and transparently.
As your end user starts typing an address into a single text box, our API will attempt to autocomplete by providing a list of addresses that match the current input. Each keystroke will update the list with more accurate suggestions.
Methods
This is a two-step process involving two endpoint methods:
Search for an address. Autocomplete is optimised to provide suggestions as you type, but also works with addresses entered in full.
POST /address/search/v1: Setting any additional options is not required - Autocomplete is the default search type.
Format the selected address, using the 'global address key'.
GET /address/format/v1/{global_address_key}: Formats an address into the standard 7 line global layout, thereby creating a well formatted address for every country and territory.
Recommended implementation
There are several ways this can be implemented into your solution. Here we will describe the way we recommend.