X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/e70f405abddfe5a8a7400424558071ebba769eda..178cb987951255c24b84bd6d8b0e18315253bcb4:/website/details.php diff --git a/website/details.php b/website/details.php index 474c1d87..4a67f70a 100644 --- a/website/details.php +++ b/website/details.php @@ -106,7 +106,6 @@ $sSQL .= ' ROUND(EXTRACT(epoch FROM indexed_date)) AS indexed_epoch,'; $sSQL .= ' parent_place_id, '; $sSQL .= ' rank_address, '; $sSQL .= ' rank_search, '; -$sSQL .= ' get_searchrank_label(rank_search) AS rank_search_label,'; // only used in HTML output $sSQL .= " get_name_by_language(name,$sLanguagePrefArraySQL) AS localname, "; $sSQL .= " ST_GeometryType(geometry) in ('ST_Polygon','ST_MultiPolygon') AS isarea, "; $sSQL .= ' ST_y(centroid) AS lat, '; @@ -136,6 +135,7 @@ if (!$aPointDetails) { $aPointDetails['localname'] = $aPointDetails['localname']?$aPointDetails['localname']:$aPointDetails['housenumber']; $aPointDetails['icon'] = Nominatim\ClassTypes\getProperty($aPointDetails, 'icon', false); +$aPointDetails['rank_search_label'] = getSearchRankLabel($aPointDetails['rank_search']); // only used in HTML format // Get all alternative names (languages, etc) $sSQL = 'SELECT (each(name)).key,(each(name)).value FROM placex ';