]> git.openstreetmap.org Git - nominatim.git/commitdiff
remove rank_search_label field
authormarc tobias <mtmail@gmx.net>
Mon, 9 Apr 2018 12:15:36 +0000 (14:15 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Thu, 12 Apr 2018 20:02:24 +0000 (22:02 +0200)
lib/template/details-json.php
website/details.php

index 03f285ec5e20a5c53f136f6531f4e2eec670faf4..3cf233d4ba72518654ae2879fa3214cc00b744a9 100644 (file)
@@ -30,7 +30,6 @@ $aPlaceDetails['icon'] = CONST_Website_BaseURL.'images/mapicons/'.$aPointDetails
 
 $aPlaceDetails['rank_address'] = (int) $aPointDetails['rank_address'];
 $aPlaceDetails['rank_search'] = (int) $aPointDetails['rank_search'];
-$aPlaceDetails['rank_search_label'] = $aPointDetails['rank_search_label'];
 
 $aPlaceDetails['isarea'] = ($aPointDetails['isarea'] == 't');
 $aPlaceDetails['lat'] = (float) $aPointDetails['lat'];
index bc98d40058bc8302ef8b2d8feb9250bc2f4c9588..08d1d2d86571eaedb40ba6cf3650521cc7928203 100755 (executable)
@@ -106,7 +106,7 @@ $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,';
+$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, ';