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

getByCode for United Kingdom #93

Open
freyjajokulsd opened this issue Nov 3, 2022 · 0 comments
Open

getByCode for United Kingdom #93

freyjajokulsd opened this issue Nov 3, 2022 · 0 comments

Comments

@freyjajokulsd
Copy link

Currently the United Kingdom is one of the countries that does not have an alpha3
See: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Exceptional_reservations'

It could be useful to have the getByCode method return the Great Britain country code for UK so that is has an alpha3 and so that the following statement is true:

United Kingdom is officially assigned the alpha-2 code GB

For an example CountryCode.getByCode("UK") would return CountryCode.GB and therefore .alpha3 will not throw a NPE like it does for CountryCode.UK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant