Closed mledoze closed 11 months ago
@romsson that's ok for me! Would you like to do this?
I'll do it! Happy to contribute this this super useful project @mledoze
For future contributions regarding country name translations, I found this CSV [1] which might help.
[1] http://jonahellison.com/21640-translated-country-names-unicode-csv
@mledoze I think we need to update translations objects according to the "name" object.
"translations":{
"de": {
"common":"Russland",
"official":"Russische Föderation"
}...
}
@herrniemand I'm ok with this change, although I'm reserved about the increased size of countries.json
.
I would like to know whether a country is in the European Union. Is that something suitable for this project to include for every country?
@Sjord
I would like to know whether a country is in the European Union. Is that something suitable for this project to include for every country?
This has been asked here before (https://github.com/mledoze/countries/issues/6#issuecomment-46950625) and answered (https://github.com/mledoze/countries/issues/6#issuecomment-47659566). Unfortunately, this is not suitable to include in this project.
Though, thank you for asking!
@mledoze I kept translation in one line to keep it smaller.
I kept translation in one line to keep it smaller.
@herrniemand I saw it, very good.
Yay :smile: I just got this short URL http://git.io/countries for this project!
Sweet! :dancers:
@mledoze YAY!!!!!!!!!XD
I strongly would advise the addition of provinces and major cities. There already exist few packages in Github, with limited range of countries of course, such as:
https://github.com/astockwell/countries-and-provinces-states-regions https://github.com/substack/provinces
If licenses are compatible, they could be included within this package with due credits wherever applicable.
@shehi #40 is the discussion about that. And @fayder proposed here(comment) the structure.
@mledoze I just posted it on echojs... and it gone... XD
@herrniemand yay thank you:) http://www.echojs.com/news/13325
@mledoze XD Thank you dude! Bloody brilliant project! XD
Yesterday was a good day, look at the stats:
@mledoze its maintainers only view *( Send screenshot.
@mledoze Nice! *)
Add sea borders
Hi, super useful project! Thanks for maintaining it.
I'm aware that population data were added it, then, were removed on:
@herrniemand population data was already added to this dataset (81fa9f6) but later removed (see #6 (comment)).
But, What about include population historical data only?
Like this:
"name": {
"common": "Costa Rica",
"official": "Republic of Costa Rica",
"native": {
"spa": {
"official": "Rep\u00fablica de Costa Rica",
"common": "Costa Rica"
}
}
},
.
.
.
"population": {
"2013": { "unit": "million", "amount":"4.872" },
"2012": { "unit": "million", "amount":"4.805" },
"2011": { "unit": "million", "amount":"4.738" },
"2010": { "unit": "million", "amount":"4.67" },
}
}
And we can get another interesting historical info for each country from google like:
Same pattern
"lifeExpectancy": {
"2012": { "unit": "year", "amount":"79.7" },
"2011": { "unit": "year", "amount":"79.49" },
"2010": { "unit": "year", "amount":"79.28" },
}
What do you think? I would be glad to help with this
Regards
Hello @cumanacr, thank you for your comment but unfortunately this project does not contains historical data. One good candidate for this kind of data would be the tinata project, you could ask there.
@mledoze thanks, but no thanks, I like this project :smiley:
Maybe a separate file like #40 proposes for the country regions but on historical data, eg:
This way, countries.json keeps small.
maybe something like that, is better?
Regards
Multiple Capitals.
We have just the list of languages. How about adding official languages? For example, India has too many languages and there are around 15+ official languges out of all.
@Purus the languages
property already contains the list of official languages for each country (see README). I know that there are some countries with many recognised regional languages, I would prefer no to take them into account as it would make the dataset too big.
How about adding the currencies names?
e.g.
"currencies" : {
"eur" : "Euro",
"mxn" : "Peso"
}
@thefabulousdev For me, that's something that's better solved by cross-reference to a dedicated data-set. Something like this for example.
@petert82 agree
can you add language direction? ltr and rtl ?
can you add language direction? ltr and rtl ?
Hey,
would you be interested to add Polish translation? I could prepare commit with data from this list.
We can. But not using that list. It is mixed up. There no distinction between official name and common name, such as
2015-08-21 12:26 GMT+12:00 Marek Skiba notifications@github.com:
Hey,
would you be interested to add Polish translation? I could prepare commit with data from this list https://gist.github.com/lukaszfiszer/7185871.
— Reply to this email directly or view it on GitHub https://github.com/mledoze/countries/issues/6#issuecomment-133226393.
@pjona
would you be interested to add Polish translation?
That could be a good addition, but @herrniemand is right we will need both common and official names.
I would like to have the ISO639-1 code (de for Austria) in the list.
Lovely. I would have used it if it has timezone in it.
@jhourlad please read this thread https://github.com/mledoze/countries/pull/106 to see why timezones were not added in this project.
Looking https://en.wikipedia.org/wiki/Continent there is no "Oceania" continent. The JSON label says region which makes sense to call the proximate islands of Australia Oceania though its not really a continent (depending who you ask).
Would it make sense to add a continent field according to one or more of the existing continent models?
cheers
As mentioned by others, it would be useful to be able to know if a country is within the EU.
https://en.wikipedia.org/wiki/Member_state_of_the_European_Union
Hello @olimortimer, yes this has been asked before by others, but unfortunately, this kind of data does not suit this project.
Please see this comment https://github.com/mledoze/countries/issues/6#issuecomment-71026239.
Hello, About adding the cities, you can maybe see what the Eurostat is doing : http://ec.europa.eu/eurostat/web/nuts/overview
Add a format: SQL (for main AND data) I have done it for the main (1st draft of the data attached to this comment) I will work on the by country files to turn them into SQL too.
@maquejp Countries project ideology is KISS. Adding cities would majorly increase the size of the project, and would not serve according value. So I personally vote not on that idea.
About SQL DUMP: I don't see much of an issue to write a script that loads json into DB. There are far more then enough solutions online/stackoverflow. As addition it is a major security risk, to just load random sql dumps into databases. So I vote no on that one as well.
What about the past? In using countries.json to analyse past pieces of text, I found "soviet" was not identified. Would adding a historical extension of the data with applicable dates be achievable in the long term?
@cmacdonald Countries project goal is to provide basic information about current de-jure political state of the world. We provide basic, static information.
History will never be part of this project as it is contradicts the goal of this project to provide basic and static information, and due to single case use limitation.
Hello @cmacdonald, I'm sorry but historical data are out of scope for this project.
Hello! I think adding emoji for country flag will be nice. You can find emoji of flags here: http://emojiflags.com/
If someone is searching for a country list with info if the country is in the EU: Here's a short script to append the info to the country list.
https://gist.github.com/Bartinger/f0507c786bad45cc942de471b1427e48
@Bartinger thank you for that! :)
I would like to discuss here the data that should be added to this repository.
A similar project like 0xJS [1] contains a lot more data such as the land area or the latitude/longitude coordinates of each country.
Is it interesting/useful to have this kind of data too?
Data that can be added:
What would you like to be added?
Please let me know in the comments.
[1] http://oxjs.org/#doc/Ox.COUNTRIES [2] source: http://opengeocode.org/ [3] source: https://oxjs.org/#doc/Ox.COUNTRIES
From the comments