]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/search.php
add support for house numbers without street
[nominatim.git] / website / search.php
index a849ab81efaa1c87e84461c2fa03285e923644c7..395790a2a7b6e0143068ff492d7f36f0529eabfb 100755 (executable)
                                                        }
                                                }
                                                if ($aSearch['sCountryCode']) $aTerms[] = "country_code = '".pg_escape_string($aSearch['sCountryCode'])."'";
-                                               if ($aSearch['sHouseNumber']) $aTerms[] = "address_rank between 22 and 27";
+                                               if ($aSearch['sHouseNumber']) $aTerms[] = "address_rank between 16 and 27";
                                                if ($aSearch['fLon'] && $aSearch['fLat'])
                                                {
                                                        $aTerms[] = "ST_DWithin(centroid, ST_SetSRID(ST_Point(".$aSearch['fLon'].",".$aSearch['fLat']."),4326), ".$aSearch['fRadius'].")";