]> git.openstreetmap.org Git - nominatim.git/commitdiff
limit fallback to pure number housenumbers
authorBrian Quinion <openstreetmap@brian.quinion.co.uk>
Mon, 28 Mar 2011 11:37:17 +0000 (11:37 +0000)
committerBrian Quinion <openstreetmap@brian.quinion.co.uk>
Mon, 28 Mar 2011 11:37:17 +0000 (11:37 +0000)
website/search.php

index 3b5d55acea47bbf44846cce441e4de8612e3778b..6596fca4c77edb3008a8211fca3ab77d0297e00b 100755 (executable)
                                                                }
 
                                                                // Fallback to the road
-                                                               if (!sizeof($aPlaceIDs))
+                                                               if (!sizeof($aPlaceIDs) && preg_match('/^[0-9]+$/', $aSearch['sHouseNumber']))
                                                                {
                                                                        $aPlaceIDs = $aRoadPlaceIDs;
                                                                }