]> 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>
Mon, 16 Apr 2012 13:33:13 +0000 (15:33 +0200)
website/search.php

index 88248cea2484a191332073fc202ac30fa44606a7..7c0838c9f57436467b3f10b26b7c3be833ea9491 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))
                                                                {