How to Switch from Google Address Autocomplete
Guides
Guides
Feb 2, 2024

How to Switch from Google Address Autocomplete

If you've landed here, you're likely in search of an alternative address autocomplete API. Do you need localised and granular address results? Better customization and search capabilities? Or maybe just a more reliable provider that sources their data from real authoritative databases.

AddressZen offers a streamlined and effective solution for address lookup and validation, catering to businesses that want to enhance their data quality and customer experience. Our tool not only captures accurate and complete addresses but also corrects typos and errors in real-time. It quickly displays suggestions, typically in as little as 45 seconds, and is designed with screen reader compatibility for improved accessibility. The integration process is straightforward, providing a simpler and more manageable alternative to dealing with Google's multiple APIs. For more information on the shortcomings of Google's address autocomplete, you can find additional details here.

Ready to switch? This guide will walk you through the steps to transition to AddressZen with ease.


Getting Started in 3 Steps

Step 1: Review Your Current Form Setup

To use Address Lookup, your form should include five essential input fields: the first line of the address, second line (if applicable), city, state, and zip code. This setup ensures the accurate collection of address information.

Example Form Layout:

  1. Address Line 1
  2. Address Line 2 (If applicable)
  3. City
  4. State
  5. Zip Code

Step 2: Integrate AddressZen

Address Lookup serves as an all-in-one autocomplete and validation solution. It simplifies the process of handling address inputs and offers more customization options, leading to better performance and a more user-friendly experience.

To continue with the integration, simply remove the Google Autocomplete API and Address Validation code from your platform, and replace it with AddressZen's code snippet. Just copy and paste the following script into your platform:

```

<script src="https://cdn.jsdelivr.net/npm/@addresszen/address-lookup"></script>
<script>
 AddressZen.AddressLookup.setup({
   apiKey: "your_api_key_here",
   outputFields: {
     line_1: "#line_1",
     line_2: "#line_2",
     city: "#city",
     state: "#state",
     zip_plus_4_code: "#zipcode",
   },
 });
</script>

```

Remember to replace "your_api_key_here" with your own API key from AddressZen, which you'll get when you create an account with us. This key links your form fields to our services, enabling real-time address search as you type.

Note: line_1 is designated for displaying the first line of the address and is the field where users type to receive address suggestions.

For a complete list of output fields, visit here.

Step 3: Customizing and Testing

Test the implementation to ensure that the address lookup, selection, and validation are working as expected. This step is crucial to ensure a smooth user experience.

You can easily tailor the appearance and functionality of your form to meet your preferences. For guidance on additional configuration, refer to our documentation.

You should now have successfully switched to AddressZen, and your form is ready to begin verifying accurate addresses. We also offer address autocomplete integrations for e-commerce platforms, CRMs, and web and form builders. If you have any questions or need further assistance with your setup, feel free to Contact us.