samayo / country-json Goto Github PK
View Code? Open in Web Editor NEWA simple data of the world by country each in JSON format.
Home Page: https://data.world/samayo
License: MIT License
A simple data of the world by country each in JSON format.
Home Page: https://data.world/samayo
License: MIT License
Hi, some flags are not valid. Issue seems to be related do base 64 encoding. Please check this for instance:
base64 validation also fails https://base64.guru/tools/validator
I hate to be That Guy, but the file named country-acronym
should be country-abbreviation
.
An acronym is a word made up of initial letters from a phrase, like "laser". Things like "CK" and "LHR" are abbreviations.
I received a request to add Montenegro (+382) as a country in country-by-calling-code.json. Thank you.
The following entries have null values for the abbreviation field.
{ // Should be removed
"country": "England",
"abbreviation": null
},
{
"country": "Kazakstan", // Renamed to Kazakhstan
"abbreviation": null // Replaced with KZ
},
{
"country": "Micronesia, Federated States of",
"abbreviation": null // Replaced with FM
},
{
"country": "Northern Ireland",
"abbreviation": null // Replaced with GB
},
{ // Removed
"country": "Scotland",
"abbreviation": null
},
{
"country": "South Sudan",
"abbreviation": null // Replaced with SS
},
{
"country": "SriLanka", // Renamed to SriLanka
"abbreviation": null // Replaced with LK
},
{
"country": "The Democratic Republic of Congo",
"abbreviation": null // Replaced with CD
},
{
"country": "Virgin Islands, British",
"abbreviation": null // Replace with VG
},
{
"country": "Virgin Islands, U.S.",
"abbreviation": null // Replace with VI
},
{ // Removed
"country": "Wales",
"abbreviation": null //
},
Some should be removed and some needs to be updated
https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
Is it possible to provide with data source links? I mean where are those data coming from.
These files has some issue concerning data of some countries. There is no countries name Kosovo, Montenegro, Serbia. There is an old name of these new countries called Yugoslavia. There is no more country name Yugoslavia right now. Rather it should be replaced by those three countries mentioned above. Need big time fix.
In country-by-national-dish.json for India, there is a typo in the national dish
Instead of
"No officially anointed national dish"
It should probably be,
"No officially announced national dish"
While "Country by Alphabet Letters" "Country by Surface Area" contain Taiwan, "Country by Name" and many other lists do not.
There are also some other countries missing flags but these countries are the largest ones that deserve attention
Can you add the country code for Russia? it is +7
Hello,
I am trying to find countries json with dial code,continents and country name because i need to filter countries based on continents.
It would be really helpful if you provide the same
Thanks
Currently all the data is separated by category into different file. I think it would be nice if there provided single file contain all the data. Ideally it would be concatenated by a build script.
I've tried to use in composer, but get next message:
[InvalidArgumentException]
Could not find a matching version of package samayo/country-data. Check the package spelling, your version constraint and that the package is available in a stabili ty which matches your minimum-stability (stable).
Then I added it manually to composer.json and tried to update, and get that:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package samayo/country-data could not be found in any version, there may be a typo in the package name.
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
- It's a private package and you forgot to add a custom repository to find it
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
Anyone knows what happens? Thanks
Hello.
I found your project quite interesting.
Would you mind providing me some of your sources? (If they're freely available, of course)
I have a Currency project here: https://github.com/andremarcondesteixeira/currency
Best regards.
about half of the fields in languages are incorrect. For example, Chinese is not the official language of the United States nor Arabic for Australia
Hi, I just read (scanning to be precise) all your file under scr
and just one thing bugs me.
I found that Ivory Coast
and Côte d’Ivoire
are the same country.
Most of the src's files are using Côte d’Ivoire
, while the other are using Ivory Coast
and one file just using Ivory
.
I make the list of files that not using Côte d’Ivoire
So, I suggest that you have to choose between them either Côte d’Ivoire
or Ivory Coast
for consistency, even thought both of them are true.
Related to this open data question/answer
Does this type of dataset exist anywhere for US States?
I'm trying to install the package and have in my composer.json
samayo/country-data: "^1.0"
This worked before but now I'm getting an error:
The requested package samayo/country-data could not be found in any version, there may be a typo in the package name.
I searched on the packagist and cannot find it anywhere.
Was the package removed?
I noticed that some of data is inaccurate. For example the population of Bulgaria is said to be around 8 millions, but that was the number back in 2001. Maybe you should consider updating?
country-json/src/country-by-name.json
Line 741 in 4d38ba3
Are you sure Yugoslavia is exist?
How can i get relative path of json file in function ?
Instead of Kazakstan
the country name should be spelled Kazakhstan
, and currently its phone calling code is missing
Hi this is just a question for the repo maintainer. Well, 3 questions:
First of all thanks for putting this up, great idea to have it as an npm package too!
src/country-abbreviation.json
follow an ISO (in its abbreviations)?Best.
Please add the Bosnian language as an official for Bosnia and Herzegovina
country-by-languages.json
{"country" : "Bosnia and Herzegovina", "language": "Bosnian"}
Do you can do a json with all information for country ?
You have info about country that doesn't exist anymore. It got broken into several smaller countries since 1991. [1] Even thou remaining two countries from previous federation have been using old name, they've also parted ways. First country was renamed to "Serbia and Montenegro" back in 2003. [2] Then in 2006 they've parted ways and each country started using their own names, Serbia [3] and Montenegro [4] respectfully.
Project covers some of those former republics of Yugoslavia but not all of them as it should.
So, someone should update the list with such changes :-)
Great project btw. 👍
[1] - https://en.wikipedia.org/wiki/Yugoslavia#New_states
[2] - https://en.wikipedia.org/wiki/Serbia_and_Montenegro
[3] - https://en.wikipedia.org/wiki/Serbia
[4] - https://en.wikipedia.org/wiki/Montenegro
add links in readme to each of the json files. Indicating what the files does in the link. ex:
It seems that cities with non-ascii symbols are cut off.
For example:
{"country" : "Brazil","city" : "Bras"},
{"country" : "Costa Rica","city" : "San Jos"},
{"country" : "Faroe Islands","city" : "T"},
{ "country": "Montenegro", "population": "631219" },
population should be int
why are the first country has 4 flags ? and not right !
file:country-by-flag.json
pls check !
https://github.com/samayo/country-json/blob/master/src/country-by-languages.json
"country": "Uzbekistan" 's first official language is "Uzbek". "Karakalpak" language is used only in Karakalpakstan autonomous republic, which is the part of Uzbekistan.
When trying to install it using composer I get
Could not find a matching version of package samayo/country-json. Check the package spelling, your version constraint and that the package is available in a stability which
matches your minimum-stability (stable).
Any ideas what could be the issue?
Just curious - you have "golden rod" listed as a US national animal in https://github.com/samayo/country.json/blob/master/src/country-national-animal.json#L40
what's kind of animal is that?
There's a goldenrod plant (http://en.wikipedia.org/wiki/Goldenrod), but maybe i'm missing something
E.g. https://github.com/samayo/country-json/blob/master/src/country-by-abbreviation.json doesn't have Taiwan with abbreviation TW.
Contrary to other files, in country-languages.json
the keys are capitalized.
I think the years should be numeric values.
Yugoslavia does not exist anymore, but Serbia is missing from the JSON.
Remove:
{
"country": "Yugoslavia",
"city": "Beograd"
},
Add:
{
"country": "Serbia",
"city": "Belgrade"
},
population was missing these countries for me:
1: "Cabo Verde"
2: "Channel Islands"
5: "Curaçao"
7: "Eswatini"
9: "Fiji"
10: "Isle of Man"
11: "Kosovo"
12: Congo was listed as 0?
14: "Serbia"
15: "Sint Maarten"
16: "Sri Lanka"
17: "St Martin"
18: "St. Barth"
19: "St. Vincent Grenadines"
20: "Taiwan" (????? political...?)
21: "Timor-Leste"
25: "Vatican City"
(I tried to remove ones I noticed had a match but were spelled differently by eye, sorry if I missed any)
{"country" : "Denmark","city" : "K"},
Should be København, so I guess there is a encoding problem here?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.