Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update Luxembourg subdivision codes #77

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 48 additions & 3 deletions data/iso-codes/data_iso_3166-2.json
Original file line number Diff line number Diff line change
Expand Up @@ -13557,20 +13557,65 @@
"type": "County"
},
{
"code": "LU-D",
"code": "LU-CA",
"name": "Capellen",
"type": "District"
},
{
"code": "LU-CL",
"name": "Clervaux",
"type": "District"
},
{
"code": "LU-DI",
"name": "Diekirch",
"type": "District"
},
{
"code": "LU-G",
"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-L",
"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",
Expand Down
83 changes: 80 additions & 3 deletions subdivisions.go
Original file line number Diff line number Diff line change
Expand Up @@ -5062,12 +5062,30 @@ func (s SubdivisionCode) String() string { //nolint:cyclop,gocyclo
return "Utenos Apskritis"
case SubdivisionLTVL:
return "Vilniaus Apskritis"
case SubdivisionLUD:
case SubdivisionLUCA:
return "Capellen"
case SubdivisionLUCL:
return "Clervaux"
case SubdivisionLUDI, SubdivisionLUD:
return "Diekirch"
case SubdivisionLUG:
case SubdivisionLUEC:
return "Echternach"
case SubdivisionLUES:
return "Esch-sur-Alzette"
case SubdivisionLUGR, SubdivisionLUG:
return "Grevenmacher"
case SubdivisionLUL:
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:
Expand Down Expand Up @@ -14845,6 +14863,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:
Expand Down Expand Up @@ -24637,6 +24679,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:
Expand Down Expand Up @@ -31920,6 +31986,17 @@ func AllSubdivisions() []SubdivisionCode {
SubdivisionLUD,
SubdivisionLUG,
SubdivisionLUL,
SubdivisionLUCA,
SubdivisionLUDI,
SubdivisionLUEC,
SubdivisionLUES,
SubdivisionLUGR,
SubdivisionLULU,
SubdivisionLUME,
SubdivisionLURD,
SubdivisionLURM,
SubdivisionLUVD,
SubdivisionLUWI,
SubdivisionLV001,
SubdivisionLV002,
SubdivisionLV003,
Expand Down
27 changes: 27 additions & 0 deletions subdivisionsconst.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down