Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When geocoding, the accuracy of the result is checked against the "Google Maps geocoding minimum accuracy" setting for the country, or if that doesn't exist the site wide minimum accuracy is used.
There is a bug in google_geocode_location() in google.inc causing the country specific setting to be ignored.
The code is:
<?php
if ($accuracy_code < variable_get('location_geocode_' . $location['country'] . 'google_accuracy_code', variable_get('location_geocode_google_minimum_accuracy', '3'))) {
return NULL;
}
?>
and is missing an underscore and should be:
<?php
if ($accuracy_code < variable_get('location_geocode_' . $location['country'] . '_google_accuracy_code', variable_get('location_geocode_google_minimum_accuracy', '3'))) {
return NULL;
}
?>
Comments
Comment #1
rooby CreditAttribution: rooby commentedFIxed in all versions.
http://drupal.org/cvs?commit=473152
http://drupal.org/cvs?commit=473150
http://drupal.org/cvs?commit=473154