SiNNuT Posted July 12, 2012 Share Posted July 12, 2012 - Not sure where to post this- I just made a country list and i thought it might be useful to someone so i put it on github. You could use this for example with the importpagescsv module to easily create country pages for use in your site, forms etc. For now it's English only ( i could add other languages if someone needed it) README.md About This is a complete ISO 3166-1 encoding list. It is listed in alphabetical order by the English short country name used by the ISO 3166/MA. There are currently 249 ISO 3166-1 countries. England, Northern-Ireland, Scotland and Wales are added to that because they are used by FIFA. It also contains the corresponding IOC and FIFA three letter codes and the filenames of the country flag image(s). Total countries: 253 Fileformat: txt file separated bij tabs Data is taken from: http://en.wikipedia....wiki/ISO_3166-1 and http://en.wikipedia....6_country_codes Flag icons I included the flag icons from http://icondrawer.com/free.php See the link for details and terms of use. You can also get the flags in a wide range of sizes and flavors from this awesome project: https://github.com/koppi/iso-country-flags-svg-collection For the least amount of hassle: https://github.com/koppi/iso-country-flags-svg-collection#download-the-icon-sets 6 Link to comment Share on other sites More sharing options...
Pete Posted July 13, 2012 Share Posted July 13, 2012 I love everything about this post but also wanted to say I'd not seen such lovely icons for flags in different sizes before as the ones you've linked to at icondrawer - nice! Link to comment Share on other sites More sharing options...
SiNNuT Posted July 13, 2012 Author Share Posted July 13, 2012 The README contents in the topicstart are outdated. I've added Dutch country names to the list. For future reference check out the github page because i'm not gonna keep the topicstart up to date. @Pete I also love the icondrawer flags but there are some restrictions to it's use if you honor their wishes (i.e. put a link on a site) The other flags i mentioned are pretty neat as well and are unrestricted as far as i can tell. Link to comment Share on other sites More sharing options...
Pete Posted July 21, 2013 Share Posted July 21, 2013 Hi SiNNuT What happened to the Git repo for your countries list? Link to comment Share on other sites More sharing options...
SiNNuT Posted July 21, 2013 Author Share Posted July 21, 2013 Hi SiNNuT What happened to the Git repo for your countries list? Put it on Githhub again..https://github.com/SiNNuT/countries/ Not actively maintained, but i don't think there were a lot of new countries the last year. 5 Link to comment Share on other sites More sharing options...
Gadgetto Posted December 17, 2019 Share Posted December 17, 2019 Just stumbled across this old thread. I found a very good source for a well maintained world countries list! Available in multiple languages, in CSV, JSON and SQL formats, with associated alpha-2, alpha-3, and numeric codes as defined by the ISO 3166 standard, and with national flags included: http://stefangabos.github.io/world_countries/ 5 Link to comment Share on other sites More sharing options...
gebeer Posted December 18, 2019 Share Posted December 18, 2019 Thing about country info is that it changes all the time. I find https://www.geonames.org/export/ws-overview.html a good resource for getting up-to-date country information. They have a JSON and an XML API. And the country info also available as CSV. You can query for all countries JSON with http://api.geonames.org/countryInfoJSON?formatted=true&username=gebeer&style=full (note my username. You'd have to create your own) I used this on a custom address field type that pulls in location data in real time while filling in an address https://github.com/gebeer/FieldtypeAddressGeonames Developed it for a course directory site where 1000+ users login from all over the world, to make sure the address info is as uniform as possible. 2 Link to comment Share on other sites More sharing options...
Gadgetto Posted December 18, 2019 Share Posted December 18, 2019 1 hour ago, gebeer said: Thing about country info is that it changes all the time. I find https://www.geonames.org/export/ws-overview.html a good resource for getting up-to-date country information. They have a JSON and an XML API. And the country info also available as CSV. You can query for all countries JSON with http://api.geonames.org/countryInfoJSON?formatted=true&username=gebeer&style=full (note my username. You'd have to create your own) I used this on a custom address field type that pulls in location data in real time while filling in an address https://github.com/gebeer/FieldtypeAddressGeonames Developed it for a course directory site where 1000+ users login from all over the world, to make sure the address info is as uniform as possible. Thank you for your input! Seems to be a nice resource so far! BTW - geonames.org site seem to be 20 years old. They use tables for layout... And I can't find information about how how up-to-date the data is. Link to comment Share on other sites More sharing options...
gebeer Posted December 18, 2019 Share Posted December 18, 2019 2 hours ago, Gadgetto said: BTW - geonames.org site seem to be 20 years old. They use tables for layout... And I can't find information about how how up-to-date the data is. Seems it is still maintained and pretty up to date: https://www.geonames.org/recent-changes.html Link to comment Share on other sites More sharing options...
Gadgetto Posted December 18, 2019 Share Posted December 18, 2019 16 minutes ago, gebeer said: Seems it is still maintained and pretty up to date: https://www.geonames.org/recent-changes.html Ok, did't find this info. Thank you! Do you know, if they have also pre-translated sources? Link to comment Share on other sites More sharing options...
gebeer Posted December 18, 2019 Share Posted December 18, 2019 10 minutes ago, Gadgetto said: Do you know, if they have also pre-translated sources? Yes, they do. You can pass a lang parameter to your query to get results in a specific language. Just tested this with Russian http://api.geonames.org/countryInfoJSON?formatted=true&lang=ru&username=gebeer&style=full Information on the webservices they offer: http://www.geonames.org/export/web-services.html Documentation is a bit sparse... Link to comment Share on other sites More sharing options...
Gadgetto Posted December 18, 2019 Share Posted December 18, 2019 This looks better and better ... Last question: do you know if there is a limit on requests (per hour/day/month/...)? Link to comment Share on other sites More sharing options...
Gadgetto Posted December 18, 2019 Share Posted December 18, 2019 Oh, I just see, that you need an account to get geonames. No public API. So this isn't suitable for my SnipWire plugin. Edit: And I just found the limits: 20'000 credits daily limit per application (identified by the parameter 'username'), the hourly limit is 1000 credits. A credit is a web service request hit for most services. An exception is thrown when the limit is exceeded. 1 Link to comment Share on other sites More sharing options...
LostKobrakai Posted December 19, 2019 Share Posted December 19, 2019 21 hours ago, Gadgetto said: So this isn't suitable for my SnipWire plugin. I'd look into unicode's cldr database and something like e.g. https://punic.github.io/ 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now