The Autocomplete API is a variant of the Search API that returns place predictions in response to an HTTP request. The request specifies a textual search string and optional geographic bounds. The service can be used to provide autocomplete functionality for text-based geographic searches, by returning places such as businesses, addresses and points of interest as a user types.
The Autocomplete API can match on full words as well as substrings. Applications can therefore send queries as the user types, to provide on-the-fly place predictions.
Try this API in our Playground
If you use Leaflet for your maps, you add LocationIQ's Autocomplete as a plugin instantly! You can view instructions here. You can also view a live demo here.
The Autocomplete API endpoint (https://api.locationiq.com/v1) offers an Anycast IP address and route user requests to a datacenter closest to them. You can still manually specify a
region
similar to other LocationIQ endpoints, but in the interest of end-user experience, we don't recommended such a configuration.