mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-23 13:44:36 +03:00
reverse: ignore place nodes without an address rank
We already exclude all polygon places without an address rank. place nodes should also be ignored. This removes places like locality from the reverse results. Fixes #1839.
This commit is contained in:
parent
5f8d5f10a6
commit
3a664dc676
@ -193,6 +193,7 @@ class ReverseGeocode
|
||||
// for place nodes at rank_address 16
|
||||
$sSQL .= ' AND rank_search > '.$iRankSearch;
|
||||
$sSQL .= ' AND rank_search <= '.$iMaxRank;
|
||||
$sSQL .= ' AND rank_address > 0';
|
||||
$sSQL .= ' AND class = \'place\'';
|
||||
$sSQL .= ' AND type != \'postcode\'';
|
||||
$sSQL .= ' AND name IS NOT NULL ';
|
||||
|
Loading…
Reference in New Issue
Block a user