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