Last updated 1 Dec 2026
Address Autocomplete for Google Maps suggests real addresses as customers type and fills the street, house number, city, ZIP or postcode, state and country in WooCommerce's own fields. It works on the Checkout block, the classic checkout, My Account and the order screen, so checkout is quicker and fewer parcels go to a mistyped address. This page covers the Google API key (the step most people get stuck on), every setting and what to check when suggestions don't appear. See what the plugin does.
Quick start
Get address suggestions on your checkout in five steps:
- In Google Cloud Console, create a project with billing enabled and turn on the Maps JavaScript API, Places API (New), and Geocoding API.
- Create a browser API key restricted to your store's website.
- Go to WooCommerce > Settings > Address Autocomplete, paste the key into Browser API key, and select Save changes.
- Select Test keys to check the key and its APIs.
- Open your checkout and start typing an address.
The Set up address autocomplete checklist at the top of the settings tracks the same steps. Select Dismiss to hide it.
Installation
Bought on wpkoders.com
- Sign in to your account on wpkoders.com and open Licences. Your licence key is there, and in your order email.
- Select Download to get the plugin zip.
- In WordPress, go to Plugins > Add New Plugin > Upload Plugin, choose the zip, select Install Now, then Activate.
- Paste your licence key when the plugin asks for it. Updates then arrive in your dashboard like any other plugin.
Bought on WooCommerce.com
- Buy the plugin on WooCommerce.com. It's added to your WooCommerce.com account straight away.
- Download the zip from My Account > Downloads on WooCommerce.com.
- In WordPress, go to Plugins > Add New Plugin > Upload Plugin, choose the zip, select Install Now, then Activate.
- Connect your store to your WooCommerce.com account (WooCommerce > Extensions), so updates arrive in your dashboard like any other plugin.
Update on a staging copy first if your store takes orders all day. Every release is listed in the changelog below.
Requirements
- WordPress 6.5 or later.
- WooCommerce 8.5 or later.
- PHP 7.4 or later.
- A Google Maps API key from a Google Cloud project with billing enabled, with these APIs turned on: Maps JavaScript API, Places API (New), and Geocoding API.
- A browser API key restricted to your website. Optionally, a server API key restricted to your server's IP address, used only for Locate on map on orders.
[box]Google bills autocomplete per session (typing plus one address selection) and maps per load. Most small stores stay inside Google's monthly free usage. Billing must be enabled on the project even so.[/box]
Keys created before 2025 that only have the legacy Places API keep working: the plugin detects this and uses the legacy API. The plugin works with the Checkout block, the classic checkout, and High-Performance Order Storage (HPOS). A wpml-config.xml file is included, and the map language can follow the page language with WPML or Polylang.
How to restrict your keys
- Browser key: Application restriction Websites with your store domain (for example example.com/*). API restrictions: Maps JavaScript API, Places API (New), and Geocoding API.
- Server key (optional): Application restriction IP addresses with your server's IP. API restriction: Geocoding API.
Google rejects website-restricted keys on server requests, which is why there are two keys.
Setup and configuration
All settings are in WooCommerce > Settings > Address Autocomplete, in five sections: General, Address fields, Map, Address mapping, and Privacy & performance.
General
Google Maps API keys:
- Browser API key: Used on your checkout and account pages, so visitors can see it. Restrict it to your website.
- Server API key (optional): Only used from your server, for Locate on map on orders. Leave it empty to use the browser key.
- Places API: Automatic: Places API (New), legacy as fallback (recommended), Places API (New) only, or Legacy Places API only.
- Check your keys: Select Test keys to test the saved browser key from your browser (Maps JavaScript API and Places API) and the server key from your server (Geocoding API). Save your changes first.
Where to show address suggestions:
- Checkout: Billing address and Shipping address.
- My Account → Addresses: Billing address and Shipping address.
- Order edit screen: Suggest addresses when you edit an order's billing or shipping address in the admin. On by default.
Address fields
- Suggestions in Address 1: Show suggestions in the Address 1 field instead of a separate search field. This applies to the classic checkout and My Account. The Checkout block always shows suggestions in the Address field.
- Search field label: The label of the separate search field. Empty means "Search address".
- Apartment / unit: Add the apartment or unit number to Address 1 instead of Address 2.
- House number position: Number first: 350 5th Avenue or Street first: Via Roma 12.
- Street-first countries: With "Street first", only these countries use it. None selected means all countries.
- House number hint: Ask the customer to add a house number when the chosen address has none. Off by default.
- Limit suggestions to countries: Up to 15 countries (5 with the legacy Places API). Leave it empty to suggest addresses worldwide.
Map
The map shows the chosen address under the address form. The customer can drag the pin to the exact delivery spot, and the pin's location is saved on the order.
- Show map: Show a map with the selected address.
- Draggable pin: Billing map and Shipping map.
- Zoom: From 1 (world) to 21 (buildings). 15 shows streets.
- Map language: The language of the suggestions and the map. Shopper's language (recommended) follows the language of the page, including with WPML and Polylang.
- Map style (JSON): Optional. Paste a map style in JSON format. Invalid JSON isn't saved.
- Marker icon: Google's default pin or a Custom image from your Media Library (select Choose image).
Address mapping
Most stores don't need this. Without mapping, Address 1 gets the street and house number, Address 2 the unit, and the state is matched to WooCommerce's list.
- Use custom mapping: Fill the fields with the templates below.
- Address 1, Address 2, City, State, and Postcode: A template for each field, built from tokens such as {street_number}, {route}, {subpremise}, {premise}, {name}, {neighborhood}, {sublocality_level_1}, {locality}, {postal_town}, {administrative_area_level_1}, {administrative_area_level_2}, {postal_code}, and {postal_code_suffix}.
- Preview: Choose a sample address to see the result as you edit the templates, before saving. It uses the settings of the Address fields section.
Privacy & performance
Google receives what customers type in the address fields and their IP address. Suggested text for your privacy policy is added to Settings > Privacy > Policy guide, and saved locations are included in WordPress's personal data export.
- Load Google Maps: When the page loads (the map is shown right away), the default, or When the customer starts typing an address, which means fewer Google requests and nothing is sent to Google before.
- Wait for consent: Load Google Maps only after the visitor accepts functional cookies. It works with consent plugins that support the WP Consent API.
- Delete settings on uninstall: Remove the plugin's settings when it's deleted. Orders and saved locations are kept.
How-to guides
How to add address autocomplete to the WooCommerce checkout
- Add your browser key in General and select Test keys.
- Under Checkout, turn on Billing address and Shipping address, then select Save changes.
- On the checkout, customers type their address and choose a suggestion.
Choosing a suggestion fills the address, city, state, and ZIP code in the right format for the country.
How to autofill addresses in My Account
- Under My Account → Addresses, turn on Billing address and Shipping address.
- Customers editing their address in My account > Addresses get the same suggestions. Choosing one also switches the country when needed.
How to limit Google address suggestions to the countries you ship to
- Go to Address fields.
- Choose up to 15 countries in Limit suggestions to countries.
- Select Save changes.
Limiting countries also keeps Google requests and costs down.
How to show a delivery location map with a draggable pin
- Go to Map and turn on Show map.
- Turn on Draggable pin for the billing map, the shipping map, or both.
- Set the Zoom, and optionally a Map style (JSON) and a Marker icon.
Customers can move the pin to the exact delivery spot, such as a back entrance. The location is saved on the order.
How to find an order's delivery location
Open the order. Under the billing and shipping address, you'll see the latitude, longitude, and a View on Google Maps link.
For orders placed without choosing a suggestion, select Locate on map to look up the address with the Geocoding API.
Video
- WooCommerce address autocomplete
- Google address autocomplete at checkout
- Every country's format and My Account
- Try it risk-free for 30 days
Read the transcript
One tap, and the whole address is filled in. Typing a full address slows checkout down, and typos cost deliveries. Fewer typos, fewer failed deliveries, and a faster checkout. As customers type, real address suggestions from Google Maps appear. One tap fills the street, city, state and ZIP code. It follows each country's own format, like a Canadian province and postal code. It works in My Account address forms too, so saved addresses stay right. Faster checkouts, and parcels that arrive. Address Autocomplete for Google Maps, by WPKoders. Try it risk-free for 30 days on WooCommerce.com. Your success, koded.
Frequently asked questions
Which Google APIs do I need for address autocomplete?
The Maps JavaScript API, Places API (New), and Geocoding API, on a Google Cloud project with billing enabled.
Does it work with the WooCommerce Checkout block?
Yes. On the Checkout block, suggestions appear in the Address field itself, also after "Edit address" or switching countries. The map and the house number hint show under the address form.
How much does Google charge?
Google bills autocomplete per session and maps per load, and most small stores stay inside Google's monthly free usage. To reduce requests, set Load Google Maps to load when the customer starts typing and limit suggestions to the countries you ship to.
Can I keep Google off the page until the visitor consents?
Yes. Turn on Wait for consent, which works with consent plugins that support the WP Consent API. Developers can also use the filters and JavaScript in Developer notes.
Does it validate addresses that customers type by hand?
No. The plugin suggests and fills addresses. If a customer ignores the suggestions and types the address, it's saved as typed.
Is it compatible with HPOS?
Yes. It declares compatibility with High-Performance Order Storage.
Troubleshooting
No suggestions appear
- Select Test keys in General. It checks the key, the enabled APIs, and your website restriction.
- Make sure billing is enabled on the Google Cloud project and the three APIs are turned on.
- Check the website restriction of the browser key: it must include your store domain, for example example.com/*.
- If Limit suggestions to countries is set, suggestions only come from those countries.
- If Wait for consent is on, suggestions only load after the visitor accepts functional cookies.
The order can't be placed and asks for a billing ZIP code on the Checkout block
In version 1.1.0, when Use same address for billing is ticked on the Checkout block, choosing a suggestion fills the shipping address but may not copy it to the billing address. WooCommerce then rejects the order with "ZIP Code is required". The customer can untick Use same address for billing and tick it again, which copies the full address, and then place the order.
Locate on map doesn't work
Locate on map runs from your server. Add a Server API key restricted to your server's IP address with the Geocoding API, because Google rejects website-restricted keys on server requests.
The street name differs from the suggestion
Address 1 gets Google's full street name, for example "1200 Northwest Lovejoy Street" for the suggestion "1200 NW Lovejoy Street". Customers can edit the field after choosing the suggestion.
Known limitations
- On the admin order screen, the suggestion list shows unstyled under the page footer instead of under the field. You can still choose a suggestion with the keyboard, or type the address.
- On the Checkout block, the billing address may not be updated from a suggestion when Use same address for billing is ticked (see above).
- The plugin doesn't validate addresses typed by hand.
Developer notes
Filters
aaw_load_google_maps($load, $context): Whether Google Maps loads on a page.aaw_maps_require_consent($required, $context): Whether loading waits for consent.aaw_maps_consent_category($category): The WP Consent API category. Default functional.aaw_places_config($config, $context): The configuration passed to the autocomplete script.aaw_settings_fields($fields, $section): The settings fields of a section.
JavaScript
AAWPlaces.attach( input, { onSelect } ): Add suggestions to any address input.AAWPlaces.grantConsent(): Load Google Maps from your own consent banner.- jQuery events
aaw_custom_bindandaaw_place_selected.
Works great with
- Restrict Checkout: block checkout for regions, states, or postcodes you can't ship to, with a clear message.
- PDF Invoice, Packing Slips & Credit Notes: packing slips with the shipping address for your warehouse.
- Multistep Product Bundles: build-your-own gift boxes that need a correct delivery address.
- Donations & Fundraising: collect donations through the same checkout.
Support
Bought here, using the free Lite version, or a question before buying? Open a ticket with us: the developers who wrote the plugin reply within 1 business day.
Bought on WooCommerce.com? Open your ticket in your WooCommerce.com account, where your licence is.
Changelog
Version 1.1.0
- Improved Now requires WordPress 6.5 or later and WooCommerce 8.5 or later.
- New Places API (New) support, the API Google enables for new projects. Setting "Places API": Automatic (default; uses the new API and falls back to the legacy API for keys that only have it), Places API (New) only, or Legacy only.
- New Block checkout integration rebuilt from source (src/ included). Suggestions work in the Address field and keep working after "Edit address", "Use same address for billing" and country changes.
- New The chosen address or dragged map pin is saved on the order (latitude/longitude, existing meta keys) on block and classic checkout, and shown on the order screen with a Google Maps link.
- New Address suggestions when editing an order's billing/shipping address in the admin (replaces the unused "Autocomplete Address" field).
- New Separate browser and server API keys, setup guidance and a "Test keys" button. The existing key is used as the browser key.
- New Optional hint when the chosen address has no house number.
- New Privacy & performance settings: load Google Maps only when the customer starts typing, wait for cookie consent (WP Consent API), delete settings on uninstall (off by default). Suggested privacy-policy text and personal-data export.
- New Live preview of the address mapping in the settings.
- New Developer filters aaw_load_google_maps, aaw_maps_require_consent, aaw_maps_consent_category, aaw_places_config, aaw_settings_fields; JS API AAWPlaces and the aaw_place_selected event.
- Improved Display name is now "Address Autocomplete for Google Maps" (plugin slug, settings and data unchanged).
- Improved Settings reorganized into General, Address fields, Map, Address mapping and Privacy & performance, with inline help. All existing settings are kept.
- Improved Map language can follow the shopper's language (WPML/Polylang). Existing "English" settings are kept.
- Improved Accessible suggestion list (keyboard, screen readers), labelled search field and map.
- Fixed Viewing an order no longer calls Google and re-saves the order on every page view.
- Fixed Google Maps is no longer loaded on the order-received and order-pay pages or on admin order lists; it loads asynchronously.
- Fixed Selecting more than 5 allowed countries no longer breaks autocomplete.
- Fixed The My Account search field is no longer required and always has a label.
- Fixed Invalid map style JSON is rejected instead of breaking the map.
- Improved Tested up to WordPress 7.1 and WooCommerce 11.2.
Version 1.0.2
- Fixed "Address Pattern: Street Name then Street No" now works on classic and block checkout and on My Account, with or without "Combine Address". Leaving "Pattern Countries" empty applies it to all countries.
- Fixed Province / state is filled for every country WooCommerce has a state list for. Italy and Spain use the province (for example Trapani = TP). If no match is found the field is left empty instead of being filled wrongly.
- Fixed Block checkout no longer overwrites a returning customer's address with a previously selected one.
- Fixed Street number and street name stay together in Address 1. Address 2 only receives the apartment/unit from Google and keeps anything the customer typed.
- Fixed Small Italian municipalities without a "locality" in Google now fill the City field.
- Improved Selected coordinates are no longer stored in the visitor's browser, and previously stored ones are removed.
- Improved Tested up to WordPress 7.1 and WooCommerce 11.2.
Version 1.0.1
- Improved compatibility refresh for the latest WooCommerce and WordPress.
Version 1.0.0
- Improved Initial release.
Was this page helpful?
Thanks: every answer helps us improve this page.
Plugin releases and store tips, once a month
New releases, update warnings and one fix worth making.



