diff --git a/src/AddressFormat/AddressFormatRepository.php b/src/AddressFormat/AddressFormatRepository.php index b7833aee..7461ae81 100644 --- a/src/AddressFormat/AddressFormatRepository.php +++ b/src/AddressFormat/AddressFormatRepository.php @@ -481,7 +481,7 @@ protected function getDefinitions(): array 'uppercase_fields' => [ 'locality', 'postalCode', ], - 'locality_type' => 'post_town', + 'locality_type' => 'town_city', 'postal_code_pattern' => 'GIR ?0AA|(?:(?:AB|AL|B|BA|BB|BD|BF|BH|BL|BN|BR|BS|BT|BX|CA|CB|CF|CH|CM|CO|CR|CT|CV|CW|DA|DD|DE|DG|DH|DL|DN|DT|DY|E|EC|EH|EN|EX|FK|FY|G|GL|GY|GU|HA|HD|HG|HP|HR|HS|HU|HX|IG|IM|IP|IV|JE|KA|KT|KW|KY|L|LA|LD|LE|LL|LN|LS|LU|M|ME|MK|ML|N|NE|NG|NN|NP|NR|NW|OL|OX|PA|PE|PH|PL|PO|PR|RG|RH|RM|S|SA|SE|SG|SK|SL|SM|SN|SO|SP|SR|SS|ST|SW|SY|TA|TD|TF|TN|TQ|TR|TS|TW|UB|W|WA|WC|WD|WF|WN|WR|WS|WV|YO|ZE)(?:\d[\dA-Z]? ?\d[ABD-HJLN-UW-Z]{2}))|BFPO ?\d{1,4}', ], 'GE' => [ diff --git a/src/AddressFormat/LocalityType.php b/src/AddressFormat/LocalityType.php index 239ef262..d0bc7afe 100644 --- a/src/AddressFormat/LocalityType.php +++ b/src/AddressFormat/LocalityType.php @@ -15,6 +15,7 @@ final class LocalityType extends AbstractEnum public const DISTRICT = 'district'; public const POST_TOWN = 'post_town'; public const SUBURB = 'suburb'; + public const TOWN_CITY = 'town_city'; public static function getDefault(): string {