]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/search.php
limit fallback to pure number housenumbers
[nominatim.git] / 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;
                                                                }