]> git.openstreetmap.org Git - nominatim.git/commitdiff
add namedetails and extratags to lookup call
authorSarah Hoffmann <lonvia@denofr.de>
Mon, 10 Aug 2015 19:45:22 +0000 (21:45 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Mon, 10 Aug 2015 19:45:22 +0000 (21:45 +0200)
website/lookup.php

index b6ecbd639aed3189be464d8ba5f4cc95a919c1aa..51abe1f2ed6dd79aa0ad24b5e7edddadd980053f 100755 (executable)
                $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']);