Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

This module adds a geocoding widget to address fields, allowing you to automatically populate a geofield with location data. It geocodes addresses using AJAX and can either automatically position the first resolved address or allow manual selection.

Drupal Module to geocode address fields using ajax.

INTRODUCTION

This will add a new widget for address fields to be able to geocode the address and
populate any geofield field, doing it with ajax.

REQUIREMENTS

This module requires the following modules enabled in Drupal:

  • Geofield
  • Geocode
  • Address

This module also requires a map provider.

INSTALLATION

Install as you would normally install a contributed Drupal module. Visit Drupal's documentation for further information.

HOW IT WORKS

To get a correctly function it needs the address field and geofield field.
It takes the values of that fields Country,Street Address, Postal Code and City and formats
the string to ${add1} ${add2}, ${locality}, ${postal_code} ${country} to be seek by geocode module through ajax using the provider that's set in geocode configuration.
It can position the first resolved address automatically in geofield widget (if checkbox is checked) or do it manually when a select option is picked.

CONFIGURATION

Once we have installed the module we must make a little configuration so that it works correctly.

  • Configure the form display » Address Widget » Choose Address geocoder value » Set field target settings with your geofield map value(machine name).
  • Edit Geofield » manage fields » Geocode » Geocode method » Click geocode from an existing field and choose your address field.
  • Pick "single to multiple" for "Multi-value input handling".
  • Finally select your Geocoder providers.

Activity

Total releases
3
First release
Feb 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 3
Maintenance
Dormant

Release Timeline

Releases

Version Type Release date
2.0.0-alpha7 Pre-release Mar 11, 2025
2.0.0-alpha6 Pre-release Mar 11, 2025
2.0.0-alpha5 Pre-release Feb 26, 2025