Comments (6)
Also, in practical terms, you could simply decorate or wrap my class and override the relevant methods where you want to return additional, new and/or different data when given specific input value(s).
For now, I will not be adding it until it becomes fully official.
from iso3166.
While this would be an accurate and welcome addition, I am not sure how to deal with the fact that there is no temporary alpha3 code nor a temporary numerical code, making the dataset rather incomplete.
from iso3166.
Yes it's a bit tricky.
How about this approach: the reality seems to be that there is a valid alpha2 code and not a valid alpha3 or numerical code, so the library should reflect that.
from iso3166.
It seems that the Kosovo passport uses RKS
as the alpha-3 code.
from iso3166.
Hmm, I would argue that is probably best to keep it out of the library, as it is not officially part of the ISO 3166-1 standard. At this point in time, theoretically everyone can implement it as they wish. In practice, I have seen it being assigned the same numeric code as Serbia.
Interesting comment about it here: mledoze/countries#126 (comment)
In my opinion, the safest bet is to leave it to the users of this library to interpret XK
the way they need to. It is a so-called user-assigned code element (see https://en.wikipedia.org/wiki/ISO_3166-1#Reserved_and_user-assigned_code_elements). So, if Kosovo is at some point officially added to the standard, it will probably not keep using that alpha-2 code.
from iso3166.
As an option https://geonames.wordpress.com/2010/03/08/xk-country-code-for-kosovo/ states “If users need code elements to represent country names not included in this part of ISO 3166, the series of letters AA, QM to QZ, XA to XZ, and ZZ, and the series AAA to AAZ, QMA to QZZ, XAA to XZZ, and ZZA to ZZZ respectively and the series of numbers 900 to 999 are available.”
This may give us a valid way to add the codes, then update them when the codes are officially added.
from iso3166.
Related Issues (20)
- Use of the definite article (the) in country names HOT 5
- XK is missing HOT 1
- Empty string search returns Afghanistan because it is a very first value in country list HOT 5
- I suggest changing the source also to my repo where I keep the updated list from iso.org HOT 1
- Adding flags for EEC country members HOT 1
- Aliases HOT 5
- Project Name? HOT 1
- shouldn't the main API be static? HOT 1
- "Czech Republic" or "Czechia" (Alias -feature request) HOT 4
- PHP 8.1 Deprecation message HOT 2
- Missed Netherlands Antilles (feature request) HOT 2
- Language to be used for default locales
- New release to prevent deprecations triggered on PHP 8.1 HOT 4
- Freezes downloading on Composer install HOT 1
- Missing entry for Canary Islands HOT 2
- Canary Islands is not present in the library HOT 1
- It will be nice if structure can return Nationality also
- Croatia currency updated in 2023 HOT 1
- Make ISO3166 more "extendable" HOT 1
- Multibyte string extension does not described in composer.json schema. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iso3166.