]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/AddressDetails.php
re-add district to geocodejson
[nominatim.git] / lib / AddressDetails.php
index 4606bbe2a1ad7a5e86e68b3fc0046ecd0f246a26..2aae0742e131cb6c314e691cb84273d31a2f7180 100644 (file)
@@ -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) {