mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
calculate search position based to 'importance' rather than address rank
This commit is contained in:
@@ -25,6 +25,10 @@
|
||||
$sOutputFormat = $_GET['format'];
|
||||
}
|
||||
|
||||
// Show address breakdown
|
||||
$bShowAddressDetails = true;
|
||||
if (isset($_GET['addressdetails'])) $bShowAddressDetails = (bool)$_GET['addressdetails'];
|
||||
|
||||
// Prefered language
|
||||
$aLangPrefOrder = getPrefferedLangauges();
|
||||
$sLanguagePrefArraySQL = "ARRAY[".join(',',array_map("getDBQuoted",$aLangPrefOrder))."]";
|
||||
@@ -143,7 +147,10 @@
|
||||
$sSQL .= " from placex where place_id = $iPlaceID ";
|
||||
$aPlace = $oDB->getRow($sSQL);
|
||||
|
||||
$aAddress = getAddressDetails($oDB, $sLanguagePrefArraySQL, $iPlaceID, $aPlace['country_code']);
|
||||
if ($bShowAddressDetails)
|
||||
{
|
||||
$aAddress = getAddressDetails($oDB, $sLanguagePrefArraySQL, $iPlaceID, $aPlace['country_code']);
|
||||
}
|
||||
|
||||
$aClassType = getClassTypes();
|
||||
$sAddressType = '';
|
||||
|
||||
Reference in New Issue
Block a user