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