How to suggest adresses

We will demonstrate how to “autocomplete” search results to the user while typing in the search query. This function is often used, for example, when entering an address.

While typing text into the search field, the Autocomplete function is called after each keystroke, and the returned (suggested) results are displayed below the search field.

In the parameters, we will provide the desired type of results (in our case, addresses, but we may only want to autocomplete cities and city parts, for example).

There are many UI components that support autocomplete functionality. In this example, we will use the autoComplete.js component.