X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/fc96bee063c26ade2cdc89f255de580de9d43009..1ba3dbeac4c9cb7514ec07b11540960e0a1ccbc0:/lib/Geocode.php diff --git a/lib/Geocode.php b/lib/Geocode.php index 5efb2422..5c99919c 100644 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@ -1271,6 +1271,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();