Fixes geocoding query.
authorStéphane Jacob <sj@m4x.org>
Fri, 2 Jul 2010 06:36:00 +0000 (08:36 +0200)
committerStéphane Jacob <sj@m4x.org>
Fri, 2 Jul 2010 12:03:19 +0000 (14:03 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
include/geocoding.inc.php

index e23c0ac..845a314 100644 (file)
@@ -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