From: Sarah Hoffmann Date: Sun, 5 Feb 2017 12:08:51 +0000 (+0100) Subject: reverse: disable interpolation when going up the address hierarchy X-Git-Tag: v3.0.0~78 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/dcab7a19e540ff22a49e8322d775f13657edc3bd reverse: disable interpolation when going up the address hierarchy Fixes #621. --- 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';