From 8d91a88b2246e9939c03bd98808cb3d871ff8fdf Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Fri, 27 Oct 2017 20:10:32 +0200 Subject: [PATCH] allow unnamed roads for reverse geocoding Should avoid that results are too far off in areas where most roads are unnamed. --- lib/ReverseGeocode.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ReverseGeocode.php b/lib/ReverseGeocode.php index a7bfad63..e538620a 100644 --- a/lib/ReverseGeocode.php +++ b/lib/ReverseGeocode.php @@ -132,7 +132,8 @@ class ReverseGeocode $sSQL .= ' LIMIT 1000) as p WHERE'; } $sSQL .= ' rank_search != 28 and rank_search >= '.$iMaxRank; - $sSQL .= ' and (name is not null or housenumber is not null)'; + $sSQL .= ' and (name is not null or housenumber is not null'; + $sSQL .= ' or rank_search between 26 and 27)'; $sSQL .= ' and class not in (\'waterway\',\'railway\',\'tunnel\',\'bridge\',\'man_made\')'; $sSQL .= ' and indexed_status = 0 and linked_place_id is null'; $sSQL .= ' and (ST_GeometryType(geometry) not in (\'ST_Polygon\',\'ST_MultiPolygon\') '; -- 2.39.5