]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/PlaceLookup.php
Merge remote-tracking branch 'upstream/master'
[nominatim.git] / lib / PlaceLookup.php
index eebfe98301cc16d2ffc100bbbc0869e358d71167..a2f39ea348ba466e21111a1e6f65395eb8343f57 100644 (file)
@@ -452,11 +452,20 @@ class PlaceLookup
                 $aPlace,
                 $aPlace['country_code']
             );
                 $aPlace,
                 $aPlace['country_code']
             );
+
+            $aResults[$aPlace['place_id']] = $aPlace;
         }
 
         }
 
-        Debug::printVar('Places', $aPlaces);
+        $aResults = array_filter(
+            $aResults,
+            function ($v) {
+                return !($v instanceof Result);
+            }
+        );
+
+        Debug::printVar('Places', $aResults);
 
 
-        return $aPlaces;
+        return $aResults;
     }
 
     /* returns an array which will contain the keys
     }
 
     /* returns an array which will contain the keys