]> git.openstreetmap.org Git - nominatim.git/commitdiff
reverse: disable interpolation when going up the address hierarchy
authorSarah Hoffmann <lonvia@denofr.de>
Sun, 5 Feb 2017 12:08:51 +0000 (13:08 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Sun, 5 Feb 2017 12:08:51 +0000 (13:08 +0100)
Fixes #621.

lib/ReverseGeocode.php

index 6d3cc8293b4a8a11c95b0470fbed7725b7494a73..b3899e3b918a6d8ecedcd0780285af6e5b8ddafb 100644 (file)
@@ -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';