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