diff --git a/resources/subdivision/NG-LA.json b/resources/subdivision/NG-LA.json new file mode 100644 index 00000000..92d12a8f --- /dev/null +++ b/resources/subdivision/NG-LA.json @@ -0,0 +1,36 @@ +{ + "country_code": "NG", + "parents": [ + "NG", + "LA" + ], + "subdivisions": { + "Agege": [], + "Ajah": [], + "Ajeromi-Ifelodun": [], + "Alimosho": [], + "Amuwo-Odofin": [], + "Apapa": [], + "Badagry": [], + "Banana Island": [], + "Eko Atlantic": [], + "Epe": [], + "Eti-Osa": [], + "Ibeju-Lekki": [], + "Ifako-Ijaiye": [], + "Ikeja": [], + "Ikorodu": [], + "Ikoyi": [], + "Kosofe": [], + "Lagos-Island": [], + "Lagos Mainland": [], + "Lekki": [], + "Mushin": [], + "Ojo": [], + "Oshodi-Isolo": [], + "Sangotedo": [], + "Somolu": [], + "Surulere": [], + "Victoria Island": [] + } +} \ No newline at end of file diff --git a/resources/subdivision/NG.json b/resources/subdivision/NG.json index 913d0297..c461319d 100644 --- a/resources/subdivision/NG.json +++ b/resources/subdivision/NG.json @@ -74,7 +74,9 @@ "name": "Kwara" }, "LA": { - "name": "Lagos" + "code": "LA", + "name": "Lagos", + "has_children": true }, "NA": { "name": "Nasarawa" diff --git a/src/AddressFormat/AddressFormatRepository.php b/src/AddressFormat/AddressFormatRepository.php index 6e72f2cb..ffd0ca8c 100644 --- a/src/AddressFormat/AddressFormatRepository.php +++ b/src/AddressFormat/AddressFormatRepository.php @@ -1054,7 +1054,7 @@ protected function getDefinitions(): array 'postal_code_pattern' => '2899', ], 'NG' => [ - 'format' => "%givenName %familyName\n%organization\n%addressLine1\n%addressLine2\n%addressLine3\n%dependentLocality\n%locality %postalCode\n%administrativeArea", + 'format' => "%givenName %familyName\n%organization\n%addressLine1\n%addressLine2\n%addressLine3\n%administrativeArea\n%dependentLocality\n%locality %postalCode", 'uppercase_fields' => [ 'locality', 'administrativeArea', ],