mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
reverse: disable interpolation when going up the address hierarchy
Fixes #621.
This commit is contained in:
@@ -201,6 +201,8 @@ class ReverseGeocode
|
|||||||
if ($iPlaceID && $iMaxRank < 28) {
|
if ($iPlaceID && $iMaxRank < 28) {
|
||||||
if (($aPlace['rank_search'] > 28 || $bPlaceIsTiger || $bPlaceIsLine) && $iParentPlaceID) {
|
if (($aPlace['rank_search'] > 28 || $bPlaceIsTiger || $bPlaceIsLine) && $iParentPlaceID) {
|
||||||
$iPlaceID = $iParentPlaceID;
|
$iPlaceID = $iParentPlaceID;
|
||||||
|
$bPlaceIsLine = false;
|
||||||
|
$bPlaceIsTiger = false;
|
||||||
}
|
}
|
||||||
$sSQL = 'select address_place_id';
|
$sSQL = 'select address_place_id';
|
||||||
$sSQL .= ' FROM place_addressline';
|
$sSQL .= ' FROM place_addressline';
|
||||||
|
|||||||
Reference in New Issue
Block a user