X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/b14bc75dc4a0ca44485599d8ab4cf1c5781098e2..4f75f4cb6e468a8de282a81615e7c720e154c8b4:/lib/ReverseGeocode.php diff --git a/lib/ReverseGeocode.php b/lib/ReverseGeocode.php index 4eeb5cc4..d2902a59 100644 --- a/lib/ReverseGeocode.php +++ b/lib/ReverseGeocode.php @@ -203,6 +203,7 @@ $iPlaceID = $aPlaceLine['place_id']; $iParentPlaceID = $aPlaceLine['parent_place_id']; // the street $fFraction = $aPlaceLine['fraction']; + $iMaxRank = 30; } // else: nothing to do, take placex house from above } @@ -213,6 +214,7 @@ $iPlaceID = $aPlaceLine['place_id']; $iParentPlaceID = $aPlaceLine['parent_place_id']; // the street $fFraction = $aPlaceLine['fraction']; + $iMaxRank = 30; } } } @@ -249,6 +251,7 @@ $iPlaceID = $aPlaceTiger['place_id']; $iParentPlaceID = $aPlaceTiger['parent_place_id']; // the street $fFraction = $aPlaceTiger['fraction']; + $iMaxRank = 30; } } @@ -272,7 +275,7 @@ } } return array('place_id' => $iPlaceID, - 'type' => $bPlaceIsTiger ? 'tiger' : $bPlaceIsLine ? 'interpolation' : 'osm', + 'type' => $bPlaceIsTiger ? 'tiger' : ($bPlaceIsLine ? 'interpolation' : 'osm'), 'fraction' => ($bPlaceIsTiger || $bPlaceIsLine) ? $fFraction : -1); }