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