-
- $sSQL = 'SELECT * FROM';
- $sSQL .= '(select place_id,parent_place_id,rank_address, rank_search, country_code, geometry';
+ // no polygon search over country-level
+ if ($iMaxRank < 4) $iMaxRank = 4;
+ // search for polygon
+ $sSQL = 'SELECT place_id, parent_place_id, rank_address, rank_search FROM';
+ $sSQL .= '(select place_id, parent_place_id, rank_address, rank_search, country_code, geometry';