From dcab7a19e540ff22a49e8322d775f13657edc3bd Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Sun, 5 Feb 2017 13:08:51 +0100 Subject: [PATCH] reverse: disable interpolation when going up the address hierarchy Fixes #621. --- lib/ReverseGeocode.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ReverseGeocode.php b/lib/ReverseGeocode.php index 6d3cc829..b3899e3b 100644 --- a/lib/ReverseGeocode.php +++ b/lib/ReverseGeocode.php @@ -201,6 +201,8 @@ class ReverseGeocode if ($iPlaceID && $iMaxRank < 28) { if (($aPlace['rank_search'] > 28 || $bPlaceIsTiger || $bPlaceIsLine) && $iParentPlaceID) { $iPlaceID = $iParentPlaceID; + $bPlaceIsLine = false; + $bPlaceIsTiger = false; } $sSQL = 'select address_place_id'; $sSQL .= ' FROM place_addressline'; -- 2.39.5