X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/54126633f6078ebb86b53c614fcb243039e839fb..521d6294993f8d8d46d93d514c08556d0c924786:/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']);