From 02c4b93aedc3fe4e52096f5b0db3806dfa8e02a4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Fri, 2 Jul 2010 08:36:00 +0200 Subject: [PATCH] Fixes geocoding query. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- include/geocoding.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.1.4