Salesforce Lightning Platform offers out-of-the-box tools and services to its users by designing and building apps faster using a variety of strategies, creating and customizing custom business logic, customizing user interfaces with its framework and its integration with third-party apps and systems easily, automating your business processes.
The lightning components are like the class definitions and tell the component what it is used for. They are used in other components or apps that create instances of a class. With this component, one can implement an auto complete support in any project.
The Google API in the Lightning Component allows the user to search for the cities and created a dropdown populated with the matching records from the Salesforce objects.
The power of lightning autocomplete component is that they make the address auto-fill feature a breeze to the user. This autocomplete component is used in other components or apps that control its behaviors by specifying attribute value to its component mark-up. Users can specify the Object type, records to be retrieved and the maximum number of results to its component.
Here is a code of “address auto-suggest” or “address auto-complete” or “address auto-fill” using Google Places API with Lightning Components; to build an input form that auto-populates the dropdown with its relevant fields of addresses as you type