From 3a664dc676218db92550c1d4eef79f397260f2d3 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Sun, 5 Jul 2020 15:38:49 +0200 Subject: [PATCH] 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. --- lib/ReverseGeocode.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ReverseGeocode.php b/lib/ReverseGeocode.php index 5cecfd33..56596b03 100644 --- a/lib/ReverseGeocode.php +++ b/lib/ReverseGeocode.php @@ -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 '; -- 2.39.5