-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Added 2-digit ISO codes #5
base: master
Are you sure you want to change the base?
Conversation
Thanks for including the ISO codes. I appreciate it! |
It might have made more sense to pick these iso 3166-1 alpha-2 (prominently used as country TLDs in dns) instead of the alpha-3 codes (maybe more known from, say, country stickers on cars) as the feature id and filename scheme. I unfortunately misremembered my ISO standards, conflating with the ISO 639 language codes, where the three-letter ones form a larger set than the two-letter ones. Per the geo-json spec, however, "If a feature has a commonly used identifier, that identifier should be included as a member of the feature object with the name "id"" – whereas all additional secondary, tertiary and so on data should go in the There's a Malta on master too now that wasn't in the set at the time of this PR, if you wonder about the merge failure. |
OK, I'll give some thought to the name and then move them into the properties. |
Any issue you faced with moving the id to property? I'd love to get it merged |
I moved the 2 digit code to "properties" under the key "alpha2". Didn't add Malta, though. |
I would like to see also the numerical code. It's a small overhead, and it would make the feature set useable with any flavor of iso3166 coded data. |
We could follow https://github.com/mledoze/countries and use:
|
@Fil, that sounds like a great idea. I'd totally merge a changeset that populates all the And, if any of the existing (code ISO 3166-1 alpha-3) |
I should have read CONTRIBUTING before :) Now I understand I will not use PS: this pull request page makes my browser explode, as it tries to display |
Added in the 2-digit ISO codes for those that need them under the key "id2".