Closed (fixed)
Project:
Geocoder
Version:
8.x-4.x-dev
Component:
Code
Priority:
Major
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
28 Aug 2026 at 09:38 UTC
Updated:
2 Oct 2026 at 22:25 UTC
Jump to comment: Most recent
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.
Introduce a new setting, that allows turning the geocoding of country-only addresses off.
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
Comment #3
fagoI added a MR addressing this, works well for me! Note: Code is generated with AI, reviewed and approved by me.
Comment #5
itamair commentedComment #6
itamair commentedthx @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.