Defines default language and location for the geocoder in the configuration file.
[platal.git] / classes / gmapsgeocoder.php
index 16a2764..38eff81 100644 (file)
@@ -105,9 +105,10 @@ class GMapsGeocoder extends Geocoder {
         $parameters = array(
             'key'    => $globals->geocoder->gmaps_key,
             'sensor' => 'false',   // The queried address wasn't obtained from a GPS sensor.
+            'hl'     => $globals->geocoder->gmaps_hl,
             'oe'     => 'utf8',    // Output encoding.
             'output' => 'json',    // Output format.
-            'gl'     => 'fr',      // Location preferences (addresses are in France by default).
+            'gl'     => $globals->geocoder->gmaps_gl,
             'q'      => $address,  // The queries address.
         );