]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/Geocode.php
Reverse geocode include geometry - added bounding box tests
[nominatim.git] / lib / Geocode.php
index cf7dfbe6183e05916eefb4aff62b50ef20b7b1b5..1dbde919d4fda8975763af3e79d300206c6737a0 100644 (file)
                                $oPlaceLookup->setPolygonSimplificationThreshold($this->fPolygonSimplificationThreshold);
 
                                $aOutlineResult = $oPlaceLookup->getOutlines($aResult['place_id'], $aResult['lon'], $aResult['lat'], $fDiameter/2);
                                $oPlaceLookup->setPolygonSimplificationThreshold($this->fPolygonSimplificationThreshold);
 
                                $aOutlineResult = $oPlaceLookup->getOutlines($aResult['place_id'], $aResult['lon'], $aResult['lat'], $fDiameter/2);
-                               foreach($aOutlineResult as $k => $v)
-                               {
-                                       $aResult[$k] = $v;
-                               }
+                               $aResult = array_merge($aResult, $aOutlineResult);
 
                                if ($aResult['extra_place'] == 'city')
                                {
 
                                if ($aResult['extra_place'] == 'city')
                                {