]> git.openstreetmap.org Git - nominatim.git/commitdiff
allow slashes in house numbers
authorSarah Hoffmann <lonvia@denofr.de>
Mon, 16 Apr 2012 13:33:13 +0000 (15:33 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Thu, 26 Apr 2012 22:07:31 +0000 (00:07 +0200)
website/search.php

index a049f07e6c4b5f7702f4148aa58fbeb74c510577..f0bcf077513b9017e884de74a7da3c03f948dd13 100755 (executable)
                                                                $sPlaceIDs = join(',',$aPlaceIDs);
        
                                                                // Now they are indexed look for a house attached to a street we found
-                                                               $sHouseNumberRegex = '\\\\m'.str_replace(' ','[-, ]',$aSearch['sHouseNumber']).'\\\\M';                                         
+                                                               $sHouseNumberRegex = '\\\\m'.str_replace(' ','[-,/ ]',$aSearch['sHouseNumber']).'\\\\M';                                                
                                                                $sSQL = "select place_id from placex where parent_place_id in (".$sPlaceIDs.") and housenumber ~* E'".$sHouseNumberRegex."'";
                                                                if (sizeof($aExcludePlaceIDs))
                                                                {