]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/Geocode.php
remove IP blocking and rate-limiting code
[nominatim.git] / lib / Geocode.php
index 876a40b585692e9017f9cba2762d87ec97287575..a01abbc564dd26a869eb57cdf212c1f64f62c16a 100644 (file)
                                                                }
                                                        }
                                                }
+                                               // If a coordinate is given, the search must either
+                                               // be for a name or a special search. Ignore everythin else.
+                                               else if ($aSearch['fLon'] && !sizeof($aSearch['aName']) && !sizeof($aSearch['aAddress']) && !$aSearch['sClass'])
+                                               {
+                                                       $aPlaceIDs = array();
+                                               }
                                                else
                                                {
                                                        $aPlaceIDs = array();