]> git.openstreetmap.org Git - nominatim.git/commitdiff
For structured queries remove type list for building / street level features
authorBrian Quinion <openstreetmap@brian.quinion.co.uk>
Sat, 19 Jan 2013 01:47:17 +0000 (01:47 +0000)
committerBrian Quinion <openstreetmap@brian.quinion.co.uk>
Sat, 19 Jan 2013 01:47:24 +0000 (01:47 +0000)
website/search.php

index e00d8791b2afb9490bf2dc95810271b5ae827a8e..aee77345c5c29305c07d7c6670eb7c08a866d74c 100755 (executable)
        }
        if (sizeof($aStructuredQuery) > 0) {
                $sQuery = join(', ', $aStructuredQuery);
-               $sAllowedTypesSQLList = '(\'place\',\'boundary\')';
+               if ($iMaxAddressRank < 30)
+               {
+                       $sAllowedTypesSQLList = '(\'place\',\'boundary\')';
+               }
        }
 
        if ($sQuery)
                                        if ($iGroupLoop > 4) break;
                                        if ($iQueryLoop > 30) break;
                                }
-//exit;
+
                                // Did we find anything?        
                                if (isset($aResultPlaceIDs) && sizeof($aResultPlaceIDs))
                                {