reverse: disable interpolation when going up the address hierarchy

Fixes #621.
This commit is contained in:
Sarah Hoffmann 2017-02-05 13:08:51 +01:00
parent d4c78a982e
commit dcab7a19e5

View 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';