Title: Autocomplete Google places
Author: Kais Chrouda
Published: <strong>1 kwiytnia 2022</strong>
Last modified: 9 listopada 2026

---

Search plugins

![](https://ps.w.org/autocomplete-google-places/assets/banner-772x250.png?rev=3793077)

![](https://ps.w.org/autocomplete-google-places/assets/icon-256x256.png?rev=3793077)

# Autocomplete Google places

 By [Kais Chrouda](https://profiles.wordpress.org/kais1977/)

[Download](https://downloads.wordpress.org/plugin/autocomplete-google-places.3.4.0.zip)

 * [Details](https://szl.wordpress.org/plugins/autocomplete-google-places/#description)
 * [Reviews](https://szl.wordpress.org/plugins/autocomplete-google-places/#reviews)
 *  [Installation](https://szl.wordpress.org/plugins/autocomplete-google-places/#installation)
 * [Development](https://szl.wordpress.org/plugins/autocomplete-google-places/#developers)

 [Support](https://wordpress.org/support/plugin/autocomplete-google-places/)

## Description

This plugin adds Google Places address autocomplete to your address fields. When
a customer starts typing an address and picks a suggestion, the plugin fills the
street, city, state, postcode and country fields for them. You only need your own
Google API key.

Supported fields:

 * WooCommerce classic checkout (billing and shipping addresses).
 * WooCommerce block checkout (the default checkout of recent WooCommerce versions).
 * WooCommerce My Account addresses.
 * Any other form (Contact Form 7, Gravity Forms, Elementor, custom forms) through
   the „Custom fields” setting, by ID or CSS class.

Highlights:

 * Uses Google’s current **Places API (New)**, with an automatic fallback to the
   legacy Places API for older keys.
 * Fast: Google Maps is only loaded when a visitor first clicks an address field.
   On a WooCommerce store, the plugin’s small script only loads on the checkout 
   and My Account pages.
 * Street lines follow each country’s format („12 Rue de la Paix”, „Hauptstraße 
   12”).
 * Accessible suggestion list (keyboard and screen readers), with the attribution
   required by Google.
 * Country scope (worldwide or up to 5 countries), suggestion type (addresses, cities,
   regions, businesses) and site language support.
 * No jQuery required.

### External services

This plugin connects to the Google Maps JavaScript API (Places library) to provide
address autocomplete. This is required for the plugin to work.

The Google Maps script is only loaded when a visitor focuses a supported address
field. Nothing is sent to Google before that. After that, the text the visitor types
in the address field is sent to Google to get address suggestions, and the details
of the selected address are returned to fill the form. The request includes the 
API key you configure on the settings page and your site’s language and region. 
Like any script loaded from Google, the request also reveals the visitor’s IP address
and browser information to Google.

 * Service provider: Google Maps Platform
 * Terms of Service: https://cloud.google.com/maps-platform/terms
 * Privacy Policy: https://policies.google.com/privacy

## Screenshots

[⌊The "Google Places" settings page where you enter and test your API key.⌉⌊The "
Google Places" settings page where you enter and test your API key.⌉[

The „Google Places” settings page where you enter and test your API key.

[⌊Address fields auto-filled after selecting a Google Places suggestion.⌉⌊Address
fields auto-filled after selecting a Google Places suggestion.⌉[

Address fields auto-filled after selecting a Google Places suggestion.

## Installation

 1. Upload the plugin files to the `/wp-content/plugins/autocomplete-google-places`
    directory, or install the plugin through the WordPress Plugins screen directly.
 2. Activate the plugin through the **Plugins** screen in WordPress.
 3. Open the **Google Places** admin menu (location-pin icon), enter your Google API
    key and click **Test API key**.
 4. Save. Autocomplete is now active on your address fields.

## FAQ

### Is this a paid plugin?

No, it is completely free.

### Do I need a Google API key?

Yes. In the Google Cloud Console, enable the **Maps JavaScript API** and **Places
API (New)** for your key, then enter it on the **Google Places** settings page. 
Restrict the key to your website (HTTP referrers) so nobody else can use it.

### My key worked before. Do I need to change anything?

No. In the default „Automatic” mode the plugin tries Places API (New) first and 
falls back to the legacy Places API when your key is not enabled for the new one.
The **Test API key** button shows which API works with your key. Enabling Places
API (New) on your key is recommended, because Google no longer offers the legacy
API to new customers.

### Which fields are supported?

WooCommerce classic and block checkout billing and shipping addresses, and My Account
addresses. When an address is selected, address line 1, city, state, postcode and
country are filled automatically, and WooCommerce recalculates shipping.

### Can I use it on custom form fields?

Yes. In the „Custom fields (Form ID / class)” setting you can target address fields
on most forms (Contact Form 7, Gravity Forms, Elementor, and other HTML forms) by
ID and/or CSS class. Fields added later by JavaScript (Ajax, React or Vue forms,
modals, multi-step forms) are detected automatically.

### My checkout is on a custom page and autocomplete does not appear.

On WooCommerce stores, the script loads on the pages WooCommerce reports as checkout
or My Account. For a custom checkout page, add this to your theme or a code snippets
plugin:

    ```
    add_filter( 'autocomplete_gp_load_on_page', '__return_true' );
    ```

You can also add your field in the „Custom fields” setting, which loads the script
on every page.

### How can I reduce the number of Google requests?

Suggestions are requested after 3 characters, with a short pause while typing, and
Google sessions are used so a completed address is billed as one session. To wait
for more characters:

    ```
    add_filter( 'autocomplete_gp_min_chars', function () { return 4; } );
    ```

### Does it still require jQuery?

No. The front-end script is pure JavaScript.

## Reviews

![](https://secure.gravatar.com/avatar/42c1fe3e8f18cba37cd9e2326e8d7ab5c8ea15f91be73a34203baf320719d5f9?
s=60&d=retro&r=g)

### 󠀁[Thank you! Great plugin](https://wordpress.org/support/topic/thank-you-great-plugin-14/)󠁿

 [robmaric](https://profiles.wordpress.org/robmaric/) 18 paździyrnika 2026

Was looking for something like this. It's working well for me. Thanks

![](https://secure.gravatar.com/avatar/dacf4745b76ccc5754ce5600e2f71aff2a0edbf4fd2e243621dfb7f788a25947?
s=60&d=retro&r=g)

### 󠀁[Excelente plugin](https://wordpress.org/support/topic/excelente-plugin-1553/)󠁿

 [fretamal](https://profiles.wordpress.org/fretamal/) 12 siyrpnia 2026

Funciona bien para mi. WooCommerce para España. Únicamente he tenido que adaptar
un poco el autocompletado de provincias. Por lo demás todo correcto.

![](https://secure.gravatar.com/avatar/55f09354175ef847b4ab744514af5766a68f8e10f2eec3a773924aabaf4bc80b?
s=60&d=retro&r=g)

### 󠀁[Great](https://wordpress.org/support/topic/great-14401/)󠁿

 [mysoun](https://profiles.wordpress.org/mysoun/) 3 kwiytnia 2022

Hi Thx for this plugin that offer premium service for free

 [ Read all 3 reviews ](https://wordpress.org/support/plugin/autocomplete-google-places/reviews/)

## Contributors & Developers

“Autocomplete Google places” is open source software. The following people have 
contributed to this plugin.

Contributors

 *   [ Kais Chrouda ](https://profiles.wordpress.org/kais1977/)
 *   [ NuxWP ](https://profiles.wordpress.org/chroudakais/)

[Translate “Autocomplete Google places” into your language.](https://translate.wordpress.org/projects/wp-plugins/autocomplete-google-places)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/autocomplete-google-places/),
check out the [SVN repository](https://plugins.svn.wordpress.org/autocomplete-google-places/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/autocomplete-google-places/)
by [RSS](https://plugins.trac.wordpress.org/log/autocomplete-google-places/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 3.4.0

 * New: Places API (New) support, with automatic fallback to the legacy Places API.
   Keys created since March 2025, which cannot use the legacy API, now work.
 * New: „Google Places API” setting (Automatic, New only, Legacy only).
 * New: the „Test API key” button checks both Places API (New) and Legacy and says
   which one works with your key.
 * New: WooCommerce block checkout support (billing and shipping).
 * Performance: Google Maps is no longer loaded on every page. It loads only when
   a visitor first focuses an address field, with Google’s recommended asynchronous
   loading.
 * Performance: on WooCommerce stores without custom fields, the plugin’s script
   only loads on the checkout and My Account pages. The script is deferred and the
   styles are inline.
 * Performance: fewer Google requests (3 characters minimum, short typing pause,
   billing sessions).
 * Fix: French billing addresses were filled as „12,Rue de la Paix Rue de la Paix”.
   Street lines now follow each country’s format.
 * Fix: the country was not selected for countries whose WooCommerce name differs
   from Google’s (for example „United States (US)”). Countries are now matched by
   ISO code.
 * Fix: selecting an address on the classic checkout now updates the country and
   state dropdowns and recalculates shipping.
 * Fix: the settings page did not load on WordPress 7.1 (React 19).
 * Fix: no more conflict or double loading when the theme or another plugin already
   loads Google Maps.
 * Compatibility: tested with WordPress 7.1 and WooCommerce 11.3. Declares compatibility
   with WooCommerce High-Performance Order Storage and the Cart & Checkout blocks.
 * Compliance: the „Google Maps” attribution required by Google is now shown in 
   the suggestion list.
 * Security: the API key format is validated, all settings are validated again before
   output, and the configuration is safely encoded.
 * Security: removed leftover code from another platform and the relative include
   path.
 * Accessibility: the suggestion list works with the keyboard and screen readers.
   Pressing Enter in the list no longer submits the checkout.

#### 3.3.1

 * Update – Compatibility with latest WordPress & WooCommerce versions.

#### 3.3.0

 * New: custom field targeting now works with dynamically added fields. A MutationObserver
   detects address inputs that appear after page load (React/Ajax modals, multi-
   step forms, dynamically rendered checkouts) and attaches autocomplete to them
   automatically.
 * Improved: auto-filled values are now written in a way that React and other controlled-
   input frameworks register correctly, so the filled address is no longer reverted
   on the next render.

#### 3.2.0

 * New: multilingual support. The autocomplete now follows your WordPress site language
   and region (e.g. fr_FR), so suggestions and the predictions UI appear in the 
   visitor’s locale.
 * New: „Suggestion type” setting. Choose what Google suggests — street addresses(
   default), addresses & areas, cities only, regions, or businesses & places.
 * New: „Custom fields (Form ID / class)” option. Target address inputs on any form(
   Contact Form 7, Gravity Forms, custom forms) by ID and/or CSS class, separated
   by commas. When a suggestion is selected, the matched field is filled with the
   full street address and nearby city and postcode fields are auto-filled when 
   present. This restores and improves the old „Form ID” targeting from the 1.x 
   line.

#### 3.1.0

 * New: choose the autocomplete country scope from the admin settings. Default is
   Worldwide (works in all of Europe, USA, Canada, Japan and everywhere else); optionally
   restrict to up to 5 countries (Google’s maximum).
 * New: redesigned admin settings screen built with React (WordPress’ bundled wp.
   element), including a one-click „Test API key” button that verifies your Google
   Places key live.
 * Changed: replaced the bundled CMB2 library with a lightweight custom settings
   page (saved via the WordPress Settings API). This removes the vendored library
   entirely.

#### 3.0.0

 * Major release.
 * Rewrote the front-end script in modern vanilla JavaScript (ES6); removed the 
   jQuery dependency from the script and its enqueue.
 * Security: upgraded the bundled CMB2 library from 2.10.1 to 2.12.0 (addresses 
   CVE-2024-1792) and removed the dead root CMB2 loader.
 * Security: removed the hardcoded Google Maps API key fallback; the Maps script
   now loads only when an API key is configured.
 * Security: the Google Maps URL is now built with rawurlencode() and escaped with
   esc_url_raw().
 * Hardening: moved the direct-access guard ahead of all includes, removed unused
   example files, and added a directory-listing guard to /js.
 * Added uninstall cleanup of stored plugin options.
 * Compatibility: raised the minimum PHP requirement to 7.4 (required by CMB2 2.12.0);
   updated „Tested up to”.

#### 1.3.4

 * WordPress 5.9 version compatibility.

## Meta

 *  Version **3.4.0**
 *  Last updated **7 dni ago**
 *  Active installations **100+**
 *  WordPress version ** 5.6 or higher **
 *  Tested up to **7.1.4**
 *  PHP version ** 7.4 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/autocomplete-google-places/)
 * Tags
 * [Address AutoComplete](https://szl.wordpress.org/plugins/tags/address-autocomplete/)
   [autocomplete](https://szl.wordpress.org/plugins/tags/autocomplete/)[google address autocomplete](https://szl.wordpress.org/plugins/tags/google-address-autocomplete/)
 *  [Advanced View](https://szl.wordpress.org/plugins/autocomplete-google-places/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  3 5-star reviews     ](https://wordpress.org/support/plugin/autocomplete-google-places/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/autocomplete-google-places/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/autocomplete-google-places/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/autocomplete-google-places/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/autocomplete-google-places/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/autocomplete-google-places/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/autocomplete-google-places/reviews/)

## Contributors

 *   [ Kais Chrouda ](https://profiles.wordpress.org/kais1977/)
 *   [ NuxWP ](https://profiles.wordpress.org/chroudakais/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/autocomplete-google-places/)