From: Sarah Hoffmann Date: Fri, 18 Sep 2020 14:17:30 +0000 (+0200) Subject: use same label for all types of postcode in address X-Git-Tag: v3.6.0~74^2~1 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/576ee5aaab2379505a45ff754bc1ec5b0cea8fcc?ds=inline;hp=-c use same label for all types of postcode in address --- 576ee5aaab2379505a45ff754bc1ec5b0cea8fcc 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) {