-
Notifications
You must be signed in to change notification settings - Fork 9
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
Proposal: get Currency from Country #19
Comments
Yeah, that is a good idea, it should have the inverse of What is your idea about reworking the source data to be able to implement |
Thanks for merging the PR and your being so reactive about this. I had a deeper look into it. This is the current state of the internal dataset:
Those last one are the one to tackle if we want to provide the "best guess". A possible option would be to add a new Those flags could also have their own column with a bool. EDIT: Missed |
Following up on this "flags" idea, we would have:
Then the 19 countries with more than 1 currency mentioned before correctly resolve to 1 currency that is neither special, a fund nor superseded. |
Ok, when you said "rework" of the data I imagined you mean some complete restructuring but adding one more column would not be a big hassle. It would be nice to have some metadata like How do you see the serialization of those flags? An extra flag function on the |
Hi @zbrox, sorry I couldn't get back at you sooner. Yes this is exactly the implementation I was thinking about. For convenience, we could include a set of related functions:
|
Sounds good. We can probably start with the simpler flags like if it's a fund or a special currency. |
Hey @b4D8 I started implementing your ideas here #26 I'd appreciated it if you take a look when you have time and tell me what you think or even make changes yourself if you can. So far I've implemented almost all of the suggested interface except the last 2 functions related converting from a On a side note, I'm still not sure about using the word "flag" when countries and currencies are involved :) |
A nice addition would be to be have the inverse of
used_by()
, something like:The later is kind of like ICU likely subtags but would require to rework on the data.
The text was updated successfully, but these errors were encountered: