X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/1560685020f7c19eeee6d28b12a863cd0c6b6592..b5480f6e366be7c7d06d8444acc4cfd6a1aa31e2:/website/lookup.php diff --git a/website/lookup.php b/website/lookup.php index e5f01232..e4a98939 100644 --- a/website/lookup.php +++ b/website/lookup.php @@ -1,9 +1,9 @@ getOutlines( + $oPlace['place_id'], + $oPlace['lon'], + $oPlace['lat'], + Nominatim\ClassTypes\getDefRadius($oPlace) + ); + + if ($aOutlineResult) { + $oResult = array_merge($oResult, $aOutlineResult); + } + $aSearchResults[] = $oResult; } } @@ -69,5 +81,7 @@ $bShowPolygons = ''; $aExcludePlaceIDs = array(); $sMoreURL = ''; +logEnd($oDB, $hLog, 1); + $sOutputTemplate = ($sOutputFormat == 'jsonv2') ? 'json' : $sOutputFormat; -include(CONST_BasePath.'/lib/template/search-'.$sOutputTemplate.'.php'); +include(CONST_LibDir.'/template/search-'.$sOutputTemplate.'.php');