X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/991bd0004a400c84c2a63053eb6671a6442204f8..df764a3f3bcd55e6f7bae4db204848bee0da2a7a:/lib/Geocode.php diff --git a/lib/Geocode.php b/lib/Geocode.php index cf7dfbe6..1dbde919 100644 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@ -1647,10 +1647,7 @@ $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') {