]> git.openstreetmap.org Git - nominatim.git/commitdiff
fix inconsistency between getNearestNamendRoadFeature() and house number search
authorSarah Hoffmann <lonvia@denofr.de>
Tue, 23 Apr 2013 19:25:56 +0000 (21:25 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Tue, 23 Apr 2013 19:25:56 +0000 (21:25 +0200)
website/search.php

index 387a79de87b3bc5522c4b0ac516b9d4d97d1529a..a849ab81efaa1c87e84461c2fa03285e923644c7 100755 (executable)
                                                        }
                                                }
                                                if ($aSearch['sCountryCode']) $aTerms[] = "country_code = '".pg_escape_string($aSearch['sCountryCode'])."'";
-                                               if ($aSearch['sHouseNumber']) $aTerms[] = "address_rank in (26,27)";
+                                               if ($aSearch['sHouseNumber']) $aTerms[] = "address_rank between 22 and 27";
                                                if ($aSearch['fLon'] && $aSearch['fLat'])
                                                {
                                                        $aTerms[] = "ST_DWithin(centroid, ST_SetSRID(ST_Point(".$aSearch['fLon'].",".$aSearch['fLat']."),4326), ".$aSearch['fRadius'].")";