Address Lookup in Lightning (LWC, Aura) using Google API
Address Lookup in Lightning (LWC, Aura) using Google API July 18, 2020 by Nikhil Palekar In this post, we will implement the Address Lookup in Lightning (LWC, Aura) using Google Maps Places API in Lightning using Aura and Lightning Web Components. This is used to Autocomplete address in Lightning. When we start typing an address in the lookup field, a dropdown menu displays matching addresses returned by the Google Maps Places API. We can select the address from the dropdown which will auto-populate address fields based on the selected address. Let’s hop into the implementation. Implementation Salesforce Lightning framework provides lightning:inputAddress and lightning-input-address for Aura and Lightning Web Components respectively. Both tags support Address Lookup in Lightning using Google Maps Places API. By default, it displays all the address fields in Text format . First, we need to enable Maps and Location Settings in ...