X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/991bd0004a400c84c2a63053eb6671a6442204f8..46cef36184dc530518068a6a84ba6becd96e09bd:/lib/lib.php diff --git a/lib/lib.php b/lib/lib.php index 51bf7ebb..7b1cbb8f 100644 --- a/lib/lib.php +++ b/lib/lib.php @@ -805,9 +805,9 @@ } - function getAddressDetails(&$oDB, $sLanguagePrefArraySQL, $iPlaceID, $sCountryCode = false, $bRaw = false) + function getAddressDetails(&$oDB, $sLanguagePrefArraySQL, $iPlaceID, $sCountryCode = false, $housenumber, $bRaw = false) { - $sSQL = "select *,get_name_by_language(name,$sLanguagePrefArraySQL) as localname from get_addressdata($iPlaceID)"; + $sSQL = "select *,get_name_by_language(name,$sLanguagePrefArraySQL) as localname from get_addressdata($iPlaceID, $housenumber)"; if (!$bRaw) $sSQL .= " WHERE isaddress OR type = 'country_code'"; $sSQL .= " order by rank_address desc,isaddress desc";