type something...
google place api address

This project is not covered by Drupal’s security advisory policy.

This module allows for your users to input the whole address with a predictive autocomplete field, provided through Google Maps Javascript API. The module depends on the address module and adds a simplifying widget for the address input. (less fields to fill)

You'll need a Google Maps Javascript API key, which you can obtain from here:

https://developers.google.com/maps/documentation/javascript/

Just press GET A KEY button, if you don't have one yet. Don't be afraid by the VIEW PRICING AND PLANS button because Google generously grants you 150 000 free API queries per day. That's quite enough for a regular Drupal site so, you'll never be charged for using the key. All that you need is to create Billing profile on your Google developer console:

https://console.developers.google.com/

The Billing profile URL for a project might look like the following:

https://console.developers.google.com/billing/000AAA-1111BBB-222CCC?proj...

Existing keys for a project might be managed on a URL which looks like the following:

https://console.developers.google.com/apis/credentials?project=MY-PROJEC...

A key might be inserted either globally on the /admin/config/system/address-autocomplete-gmaps page or locally on an /admin/config/people/profiles/manage/YOUR_PROFILE/form-display page for each of the address field widgets. In any case the Address autocomplete w Google Maps widget must be enabled for the field.

The initial address fields are hidden at first (if javascript is enabled, otherwise the fields are there and this module fields aren't fired) If a required fields for the selected country is empty after input, that field will be displayed to the user. Note that if countries are restricted on an address field settings page or, in case of Drupal Commerce Customer profile on a store's Edit page (Supported billing countries), then only addresses for those countries will be suggested in the widget.

Module is currently being under heavy developing process, so any feedback would be appreciated.

🇺🇦 Stop war in Ukraine! 🇺🇦

Please consider supporting Ukraine in a fight for their freedom and safety of Europe.

Project information

Releases