]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/PlaceLookup.php
reorganise class/type information
[nominatim.git] / lib / PlaceLookup.php
index 8a1a366678652513e37378e15c36c64d18c0e679..9cc62f6c8ecc0f03e6a1c7b9497f3fc2b578c313 100644 (file)
@@ -448,10 +448,9 @@ class PlaceLookup
                 }
             }
 
-            $aPlace['addresstype'] = ClassTypes\getProperty(
-                $aPlace,
-                'simplelabel',
-                $aPlace['class']
+            $aPlace['addresstype'] = ClassTypes\getLabelTag(
+                    $aPlace,
+                    $aPlace['country_code']
             );
         }