From fb055b476e3e79e6c07d1f76b1dd465670503bde Mon Sep 17 00:00:00 2001 From: Rob Keevil Date: Wed, 11 Sep 2024 15:56:14 +0200 Subject: [PATCH] update Luxembourg subdivision codes as per https://en.wikipedia.org/wiki/ISO_3166-2:LU --- data/iso-codes/data_iso_3166-2.json | 60 +++++++++++++++++++++ subdivisions.go | 83 +++++++++++++++++++++++++++++ subdivisionsconst.go | 27 ++++++++++ 3 files changed, 170 insertions(+) diff --git a/data/iso-codes/data_iso_3166-2.json b/data/iso-codes/data_iso_3166-2.json index aa2a604..1bd0ba7 100644 --- a/data/iso-codes/data_iso_3166-2.json +++ b/data/iso-codes/data_iso_3166-2.json @@ -13571,6 +13571,66 @@ "name": "Luxembourg", "type": "District" }, + { + "code": "LU-CA", + "name": "Capellen", + "type": "District" + }, + { + "code": "LU-CL", + "name": "Clervaux", + "type": "District" + }, + { + "code": "LU-DI", + "name": "Diekirch", + "type": "District" + }, + { + "code": "LU-EC", + "name": "Echternach", + "type": "District" + }, + { + "code": "LU-ES", + "name": "Esch-sur-Alzette", + "type": "District" + }, + { + "code": "LU-GR", + "name": "Grevenmacher", + "type": "District" + }, + { + "code": "LU-LU", + "name": "Luxembourg", + "type": "District" + }, + { + "code": "LU-ME", + "name": "Mersch", + "type": "District" + }, + { + "code": "LU-RD", + "name": "Redange", + "type": "District" + }, + { + "code": "LU-RM", + "name": "Remich", + "type": "District" + }, + { + "code": "LU-VD", + "name": "Vianden", + "type": "District" + }, + { + "code": "LU-WI", + "name": "Wiltz", + "type": "District" + }, { "code": "LV-001", "name": "Aglonas novads", diff --git a/subdivisions.go b/subdivisions.go index 29d4105..cb71e4d 100644 --- a/subdivisions.go +++ b/subdivisions.go @@ -5068,6 +5068,30 @@ func (s SubdivisionCode) String() string { //nolint:cyclop,gocyclo return "Grevenmacher" case SubdivisionLUL: return "Luxembourg" + case SubdivisionLUCA: + return "Capellen" + case SubdivisionLUCL: + return "Clervaux" + case SubdivisionLUDI, SubdivisionLUD: + return "Diekirch" + case SubdivisionLUEC: + return "Echternach" + case SubdivisionLUES: + return "Esch-sur-Alzette" + case SubdivisionLUGR, SubdivisionLUG: + return "Grevenmacher" + case SubdivisionLULU, SubdivisionLUL: + return "Luxembourg" + case SubdivisionLUME: + return "Mersch" + case SubdivisionLURD: + return "Redange" + case SubdivisionLURM: + return "Remich" + case SubdivisionLUVD: + return "Vianden" + case SubdivisionLUWI: + return "Wiltz" case SubdivisionLV001: return "Aglonas novads" case SubdivisionLV002: @@ -14845,6 +14869,30 @@ func (s SubdivisionCode) Country() CountryCode { return LU case SubdivisionLUL: return LU + case SubdivisionLUCA: + return LU + case SubdivisionLUCL: + return LU + case SubdivisionLUDI: + return LU + case SubdivisionLUEC: + return LU + case SubdivisionLUES: + return LU + case SubdivisionLUGR: + return LU + case SubdivisionLULU: + return LU + case SubdivisionLUME: + return LU + case SubdivisionLURD: + return LU + case SubdivisionLURM: + return LU + case SubdivisionLUVD: + return LU + case SubdivisionLUWI: + return LU case SubdivisionLV001: return LV case SubdivisionLV002: @@ -24637,6 +24685,30 @@ func (s SubdivisionCode) SubdivisionType() SubdivisionTypeCode { return SubdivisionTypeDistrict case SubdivisionLUL: return SubdivisionTypeDistrict + case SubdivisionLUCA: + return SubdivisionTypeDistrict + case SubdivisionLUCL: + return SubdivisionTypeDistrict + case SubdivisionLUDI: + return SubdivisionTypeDistrict + case SubdivisionLUEC: + return SubdivisionTypeDistrict + case SubdivisionLUES: + return SubdivisionTypeDistrict + case SubdivisionLUGR: + return SubdivisionTypeDistrict + case SubdivisionLULU: + return SubdivisionTypeDistrict + case SubdivisionLUME: + return SubdivisionTypeDistrict + case SubdivisionLURD: + return SubdivisionTypeDistrict + case SubdivisionLURM: + return SubdivisionTypeDistrict + case SubdivisionLUVD: + return SubdivisionTypeDistrict + case SubdivisionLUWI: + return SubdivisionTypeDistrict case SubdivisionLV001: return SubdivisionTypeMunicipality case SubdivisionLV002: @@ -31920,6 +31992,17 @@ func AllSubdivisions() []SubdivisionCode { SubdivisionLUD, SubdivisionLUG, SubdivisionLUL, + SubdivisionLUCA, + SubdivisionLUDI, + SubdivisionLUEC, + SubdivisionLUES, + SubdivisionLUGR, + SubdivisionLULU, + SubdivisionLUME, + SubdivisionLURD, + SubdivisionLURM, + SubdivisionLUVD, + SubdivisionLUWI, SubdivisionLV001, SubdivisionLV002, SubdivisionLV003, diff --git a/subdivisionsconst.go b/subdivisionsconst.go index f5d7d1e..28a4b03 100644 --- a/subdivisionsconst.go +++ b/subdivisionsconst.go @@ -5051,11 +5051,38 @@ const ( // SubdivisionLTVL SubdivisionCode = "LT-VL" SubdivisionLTVL SubdivisionCode = "LT-VL" // SubdivisionLUD SubdivisionCode = "LU-D" + // Deprecated, replaced by [SubdivisionLUDI] SubdivisionLUD SubdivisionCode = "LU-D" // SubdivisionLUG SubdivisionCode = "LU-G" + // Deprecated, replaced by [SubdivisionLUGR] SubdivisionLUG SubdivisionCode = "LU-G" // SubdivisionLUL SubdivisionCode = "LU-L" + // Deprecated, replaced by [SubdivisionLULU] SubdivisionLUL SubdivisionCode = "LU-L" + // SubdivisionLUCA SubdivisionCode = "LU-CA" + SubdivisionLUCA SubdivisionCode = "LU-CA" + // SubdivisionLUCL SubdivisionCode = "LU-CL" + SubdivisionLUCL SubdivisionCode = "LU-CL" + // SubdivisionLUDI SubdivisionCode = "LU-DI" + SubdivisionLUDI SubdivisionCode = "LU-DI" + // SubdivisionLUEC SubdivisionCode = "LU-EC" + SubdivisionLUEC SubdivisionCode = "LU-EC" + // SubdivisionLUES SubdivisionCode = "LU-ES" + SubdivisionLUES SubdivisionCode = "LU-ES" + // SubdivisionLUGR SubdivisionCode = "LU-GR" + SubdivisionLUGR SubdivisionCode = "LU-GR" + // SubdivisionLULU SubdivisionCode = "LU-LU" + SubdivisionLULU SubdivisionCode = "LU-LU" + // SubdivisionLUME SubdivisionCode = "LU-ME" + SubdivisionLUME SubdivisionCode = "LU-ME" + // SubdivisionLURD SubdivisionCode = "LU-RD" + SubdivisionLURD SubdivisionCode = "LU-RD" + // SubdivisionLURM SubdivisionCode = "LU-GR" + SubdivisionLURM SubdivisionCode = "LU-RM" + // SubdivisionLUVD SubdivisionCode = "LU-VD" + SubdivisionLUVD SubdivisionCode = "LU-VD" + // SubdivisionLUWI SubdivisionCode = "LU-WI" + SubdivisionLUWI SubdivisionCode = "LU-WI" // SubdivisionLV001 SubdivisionCode = "LV-001" SubdivisionLV001 SubdivisionCode = "LV-001" // SubdivisionLV002 SubdivisionCode = "LV-002"