Skip to content

Commit

Permalink
UK locality_type should be town_city
Browse files Browse the repository at this point in the history
Fixes #200.
  • Loading branch information
bojanz committed Oct 7, 2023
1 parent 54c70e7 commit 4de2998
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/AddressFormat/AddressFormatRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' => [
Expand Down
1 change: 1 addition & 0 deletions src/AddressFormat/LocalityType.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 4de2998

Please sign in to comment.