X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/1560685020f7c19eeee6d28b12a863cd0c6b6592..6c6560ca53b7fe270eeb5069664e8eb5f078d658:/website/lookup.php diff --git a/website/lookup.php b/website/lookup.php index e5f01232..39a17ebd 100644 --- a/website/lookup.php +++ b/website/lookup.php @@ -53,6 +53,18 @@ foreach ($aOsmIds as $sItem) { unset($oResult['langaddress']); $oResult['name'] = $oPlace['langaddress']; } + + $aOutlineResult = $oPlaceLookup->getOutlines( + $oPlace['place_id'], + $oPlace['lon'], + $oPlace['lat'], + Nominatim\ClassTypes\getProperty($oPlace, 'defdiameter', 0.0001) + ); + + if ($aOutlineResult) { + $oResult = array_merge($oResult, $aOutlineResult); + } + $aSearchResults[] = $oResult; } }