X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/348a3082c926bc6f8d9a2b5ba9341a9bae338ab6..665de339e5c1afde21d836ce4be9abe94ae483e0:/lib/Geocode.php diff --git a/lib/Geocode.php b/lib/Geocode.php index 876a40b5..a01abbc5 100644 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@ -1307,6 +1307,12 @@ } } } + // 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();