X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/e59146a7334e6c8d47231e7d18c7f41a5eb02b59..975ef0b30526d72cbee90622b61971639b44508b:/lib/AddressDetails.php diff --git a/lib/AddressDetails.php b/lib/AddressDetails.php index 4606bbe2..2aae0742 100644 --- a/lib/AddressDetails.php +++ b/lib/AddressDetails.php @@ -132,8 +132,10 @@ class AddressDetails $aJson['housenumber'] = $aLine['localname']; } else if ($iRank > 25 && $iRank < 28) { $aJson['street'] = $aLine['localname']; - } else if ($iRank >= 17 && $iRank <= 25) { + } else if ($iRank >= 22 && $iRank <= 25) { $aJson['locality'] = $aLine['localname']; + } else if ($iRank >= 17 && $iRank <= 21) { + $aJson['district'] = $aLine['localname']; } else if ($iRank >= 13 && $iRank <= 16) { $aJson['city'] = $aLine['localname']; } else if ($iRank >= 10 && $iRank <= 12) {