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 commentedFIxed in all versions.
http://drupal.org/cvs?commit=473152
http://drupal.org/cvs?commit=473150
http://drupal.org/cvs?commit=473154