mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 02:58:13 +00:00
use same label for all types of postcode in address
This commit is contained in:
@@ -18,6 +18,8 @@ function getLabelTag($aPlace, $sCountry = null)
|
|||||||
$sLabel = $aPlace['place_type'];
|
$sLabel = $aPlace['place_type'];
|
||||||
} elseif ($aPlace['class'] == 'boundary' && $aPlace['type'] == 'administrative') {
|
} elseif ($aPlace['class'] == 'boundary' && $aPlace['type'] == 'administrative') {
|
||||||
$sLabel = getBoundaryLabel($iRank/2, $sCountry);
|
$sLabel = getBoundaryLabel($iRank/2, $sCountry);
|
||||||
|
} elseif ($aPlace['type'] == 'postal_code') {
|
||||||
|
$sLabel = 'postcode';
|
||||||
} elseif ($iRank < 26) {
|
} elseif ($iRank < 26) {
|
||||||
$sLabel = $aPlace['type'];
|
$sLabel = $aPlace['type'];
|
||||||
} elseif ($iRank < 28) {
|
} elseif ($iRank < 28) {
|
||||||
|
|||||||
Reference in New Issue
Block a user