X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/86e946d3696889c65c673b5ae1e667c07cc023dc..c9d7015f696b3083dd38db94cb0df864e9d66def:/website/lookup.php diff --git a/website/lookup.php b/website/lookup.php index b6ecbd63..51abe1f2 100755 --- a/website/lookup.php +++ b/website/lookup.php @@ -27,10 +27,6 @@ $sOutputFormat = $_GET['format']; } - // Show address breakdown - $bShowAddressDetails = true; - if (isset($_GET['addressdetails'])) $bShowAddressDetails = (bool)$_GET['addressdetails']; - // Preferred language $aLangPrefOrder = getPreferredLanguages(); @@ -42,7 +38,9 @@ { $oPlaceLookup = new PlaceLookup($oDB); $oPlaceLookup->setLanguagePreference($aLangPrefOrder); - $oPlaceLookup->setIncludeAddressDetails($bShowAddressDetails); + $oPlaceLookup->setIncludeAddressDetails(getParamBool('addressdetails', true)); + $oPlaceLookup->setIncludeExtraTags(getParamBool('extratags', false)); + $oPlaceLookup->setIncludeNameDetails(getParamBool('namedetails', false)); $aOsmIds = explode(',', $_GET['osm_ids']);