X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/b14bc75dc4a0ca44485599d8ab4cf1c5781098e2..4f75f4cb6e468a8de282a81615e7c720e154c8b4:/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();