mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 05:18:00 +00:00
allow coordinates in query only with name or classtype
Coordinates with country or housenumber only do not make much sense. Currently these combination result in queries that require a sequential scan of search_name and normally time out before yielding any results. fixes #462
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user