X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/c70b6ccc6dd6f69e371dbf0bc9c40126a9a65e75..bda330a87d7e6de044d4a47e61ded8c4a49fe61e:/lib/ClassTypes.php diff --git a/lib/ClassTypes.php b/lib/ClassTypes.php index 4077d211..f2c1ab84 100644 --- a/lib/ClassTypes.php +++ b/lib/ClassTypes.php @@ -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) {