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

rooby’s picture

Status: Fixed » Closed (fixed)

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