Intentionally skip Geocoding - avoid failure status message

Created on 17 December 2024, 4 months ago

Problem/Motivation

I want to intentionally skip the field geocoding under some circumstances and use either a GeocoderPreprocessor or go via hook_geocode_entity_field_address_string. I unset $value['value'] to achieve this. This is working, but the geocoding gives a warning message "Unable to geocode ''".

Steps to reproduce

unset $value['value'] in hook_geocode_entity_field_address_string and take note that warning message "Unable to geocode ''" is given.

Proposed resolution

Do not give warning message if $value['value'] is not set.

I am a bit unsure if there is valid reason to give warning if $value['value'] is empty. If so, is there another way to intentionally skip geocoding using a GeocoderPreprocessor or via hook_geocode_entity_field_address_string?

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

4.0

Component

Code

Created by

🇩🇪Germany stefan.korn Jossgrund

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024