|
@@ -192,7 +192,7 @@ class Utils {
|
|
|
}
|
|
|
|
|
|
public static function getLatLng($address) {
|
|
|
- $xml = simplexml_load_string(utf8_encode(file_get_contents(sprintf('https://maps.googleapis.com/maps/api/geocode/xml?address=%s&sensor=false', urlencode($address)))));
|
|
|
+ $xml = simplexml_load_string(utf8_encode(file_get_contents(sprintf('https://maps.googleapis.com/maps/api/geocode/xml?address=%s&sensor=false&key='.sfConfig::get('app_gmap'), urlencode($address)))));
|
|
|
|
|
|
if ($xml->status == 'OK') {
|
|
|
// Adresse correcte
|