mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-27 00:49:55 +03:00
no polygon search over country-level
This commit is contained in:
parent
f108eac527
commit
97b6656182
@ -127,8 +127,10 @@ class ReverseGeocode
|
||||
|
||||
protected function lookupPolygon($sPointSQL, $iMaxRank)
|
||||
{
|
||||
|
||||
// polygon search begins at suburb-level
|
||||
if ($iMaxRank > 25) $iMaxRank = 25;
|
||||
// no polygon search over country-level
|
||||
if ($iMaxRank < 4) $iMaxRank = 4;
|
||||
|
||||
$sSQL = 'SELECT * FROM';
|
||||
$sSQL .= '(select place_id,parent_place_id,rank_address, rank_search, country_code, geometry';
|
||||
|
Loading…
Reference in New Issue
Block a user