Motivation

When using geocoder for an addressfield, an empty address with a default country lead to Geocoder geocoding the country. That result is generally not helpful for addresses and might overwrite a custom provided location value.

Proposed resolution

Introduce a new setting, that allows turning the geocoding of country-only addresses off.

Issue fork geocoder-3619641

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

fago created an issue. See original summary.

fago’s picture

Status: Active » Needs review

I added a MR addressing this, works well for me! Note: Code is generated with AI, reviewed and approved by me.

itamair made their first commit to this issue’s fork.

itamair’s picture

Status: Needs review » Needs work
itamair’s picture

Status: Needs work » Fixed

thx @fago. I completed the MR !84 with 'geocode_country_only_address' boolean form element in Geocoder Setting form (default: TRUE) and set to auto merge ...
Will be part of next incoming Geocoder release.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • itamair committed 43019b67 on 8.x-4.x authored by fago
    task: #3619641 Allow disabling geocoding of country-only addresses
    
    By:...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.