From: Stéphane Jacob Date: Fri, 2 Jul 2010 06:36:00 +0000 (+0200) Subject: Fixes geocoding query. X-Git-Tag: xorg/1.0.1~15^2~70 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=02c4b93aedc3fe4e52096f5b0db3806dfa8e02a4;p=platal.git Fixes geocoding query. Signed-off-by: Stéphane Jacob --- diff --git a/include/geocoding.inc.php b/include/geocoding.inc.php index e23c0ac..845a314 100644 --- a/include/geocoding.inc.php +++ b/include/geocoding.inc.php @@ -414,9 +414,9 @@ class GMapsGeocoder extends Geocoder { } if ($isPseudoCountry) { - return $address['text']; + return implode("\n", array_slice($textLines, 0, -1)); } - return implode("\n", array_slice($textLines, 0, -1)); + return $address['text']; } // Search for the lign from the given address that is the closest to the geocoded thoroughfareName