X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/2767821cb0669a23cbd4835dd292c312f160edc0..399cb31507ce9c53e1be2b8606a9070c2bc132fb:/website/details.php?ds=sidebyside diff --git a/website/details.php b/website/details.php index a4a2ae5e..110fdc07 100755 --- a/website/details.php +++ b/website/details.php @@ -119,6 +119,18 @@ $sSQL .= " order by rank_address asc,rank_search asc,get_name_by_language(name,$sLanguagePrefArraySQL),housenumber"; $aParentOfLines = $oDB->getAll($sSQL); + $aPlaceSearchNameKeywords = false; + $aPlaceSearchAddressKeywords = false; + if (isset($_GET['keywords']) && $_GET['keywords']) + { + $sSQL = "select * from search_name where place_id = $iPlaceID"; + $aPlaceSearchName = $oDB->getRow($sSQL); + $sSQL = "select * from word where word_id in (".substr($aPlaceSearchName['name_vector'],1,-1).")"; + $aPlaceSearchNameKeywords = $oDB->getAll($sSQL); + $sSQL = "select * from word where word_id in (".substr($aPlaceSearchName['nameaddress_vector'],1,-1).")"; + $aPlaceSearchAddressKeywords = $oDB->getAll($sSQL); + } + logEnd($oDB, $hLog, 1); include(CONST_BasePath.'/lib/template/details-'.$sOutputFormat.'.php');