]> git.openstreetmap.org Git - nominatim.git/commitdiff
use same label for all types of postcode in address
authorSarah Hoffmann <lonvia@denofr.de>
Fri, 18 Sep 2020 14:17:30 +0000 (16:17 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Fri, 18 Sep 2020 14:17:30 +0000 (16:17 +0200)
lib/ClassTypes.php

index 4077d211bc94a211420838ac892cc7bcc4b6e21a..f2c1ab84c56f270b59264c05180bb882c1415ae5 100644 (file)
@@ -18,6 +18,8 @@ function getLabelTag($aPlace, $sCountry = null)
         $sLabel = $aPlace['place_type'];
     } elseif ($aPlace['class'] == 'boundary' && $aPlace['type'] == 'administrative') {
         $sLabel = getBoundaryLabel($iRank/2, $sCountry);
+    } elseif ($aPlace['type'] == 'postal_code') {
+        $sLabel = 'postcode';
     } elseif ($iRank < 26) {
         $sLabel = $aPlace['type'];
     } elseif ($iRank < 28) {