All Projects → country-regions → Country Region Data

country-regions / Country Region Data

Licence: mit
A source list of countries, regions and shortcodes in JSON and JS format.

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Country Region Data

Quizzity
A fast-paced geography quiz
Stars: ✭ 80 (-63.96%)
Mutual labels:  countries
Countries
Collection of Country Information for Elixir.
Stars: ✭ 107 (-51.8%)
Mutual labels:  countries
Countries
🌎 Public GraphQL API for information about countries
Stars: ✭ 156 (-29.73%)
Mutual labels:  countries
Language list
A list of languages based upon ISO-639-1 and ISO-639-3 with functions to retrieve only common languages.
Stars: ✭ 82 (-63.06%)
Mutual labels:  countries
Country Ip Blocks
CIDR country-level IP data, straight from the Regional Internet Registries, updated hourly.
Stars: ✭ 100 (-54.95%)
Mutual labels:  countries
Factbook
factbook gem - scripts for the world factbook (get open structured data e.g JSON etc.)
Stars: ✭ 121 (-45.5%)
Mutual labels:  countries
Country List
Provides a View Controller with Country List along with Calling Code and Country Code.
Stars: ✭ 76 (-65.77%)
Mutual labels:  countries
Countrycode
🎯 Swift country and phone code Picker
Stars: ✭ 175 (-21.17%)
Mutual labels:  countries
Iso 3166 Countries With Regional Codes
ISO 3166-1 country lists merged with their UN Geoscheme regional codes in ready-to-use JSON, XML, CSV data sets
Stars: ✭ 1,372 (+518.02%)
Mutual labels:  countries
Translatr
💬 Translate to multiple languages at once
Stars: ✭ 145 (-34.68%)
Mutual labels:  countries
Countries
Countries - ISO 3166 (ISO3166-1, ISO3166, Digit, Alpha-2 and Alpha-3) countries codes and names (on eng and rus), ISO 4217 currency designators, ITU-T E.164 IDD calling phone codes, countries capitals, UN M.49 regions codes, ccTLD countries domains, IOC/NOC and FIFA letters codes, VERY FAST, NO maps[], NO slices[], NO init() funcs, NO external links/files/data, NO interface{}, NO specific dependencies, Databases/JSON/GOB/XML/CSV compatible, Emoji countries flags and currencies support, full support ISO-3166-1, ISO-4217, ITU-T E.164, Unicode CLDR and ccTLD standarts.
Stars: ✭ 85 (-61.71%)
Mutual labels:  countries
Countries
Rinvex Country is a simple and lightweight package for retrieving country details with flexibility. A whole bunch of data including name, demonym, capital, iso codes, dialling codes, geo data, currencies, flags, emoji, and other attributes for all 250 countries worldwide at your fingertips.
Stars: ✭ 1,365 (+514.86%)
Mutual labels:  countries
Laravel cities
Find any country/city in the world. Get Long/Lat etc. Deploy geonames.org database localy. Optimized DB tree
Stars: ✭ 133 (-40.09%)
Mutual labels:  countries
3166
This is the best source for iso3166 codes you can found. I am sure.
Stars: ✭ 81 (-63.51%)
Mutual labels:  countries
Restcountries
Get information about countries via a RESTful API
Stars: ✭ 2,054 (+825.23%)
Mutual labels:  countries
Laravel Country State
A helper to list countries & states in English in Laravel 5.1+
Stars: ✭ 77 (-65.32%)
Mutual labels:  countries
Countries
Laravel countries and currencies
Stars: ✭ 1,564 (+604.5%)
Mutual labels:  countries
Awesome Startups
❤️ A curated list of awesome startups
Stars: ✭ 197 (-11.26%)
Mutual labels:  countries
Mapsicon
A free collection of maps for every country in the world, available in 11 sizes or in SVG.
Stars: ✭ 1,999 (+800.45%)
Mutual labels:  countries
Circle Flags
A collection of 300+ minimal circular SVG country flags
Stars: ✭ 139 (-37.39%)
Mutual labels:  countries

country-region-data

Build Status

This repo contains a static JSON file of country names, country short codes, country regions, and country region short codes. All country names and short codes are guaranteed to be unique. Similarly, all regions and region short codes within a single country are guaranteed to be unique.

I created this repo to house the raw data used for the country-region-selector, react-country-region-selector scripts. I didn't want to duplicate it in multiple places and hey, it seemed like this could be useful as a standalone repo.

Install

This package is available as an npm package. You can install via npm or yarn:

npm install country-region-data
yarn add country-region-data

Structure

See the data.json file for the data. The JSON is of the form:

[
  {
    "countryName":"Ecuador",
    "countryShortCode":"EC",
    "regions":[
      {
        "name":"Azuay",
        "shortCode":"A"
      },
      ...
    }
  },
  ... 
]

Note: the data.js file is an UMD version of the data.json file, generated automatically. The data.json file is the source of truth for the data set.

Contribute

IMPORTANT: make your changes to the data.json file, not the data.js file. The JS file is generated automatically out of the data.json file by running grunt umdify on the command line. So if you add your change to the JS file only, they will get overwritten next time that command is run.

Updates and fixes to the data is much appreciated! The state/prov abbreviations in particular are not yet complete, so the more contributors the better. Regions that need ISO3166-2 codes can be identified by having a missing shortCode property for each region. You can find them by cloning the repo, then running:

npm install
grunt findIncomplete

That'll list all countries with regions that are missing region short codes. Wikipedia has a lot of the data listed here: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2

Data Validation

Before contributing a PR, please validate the JSON content (if you don't, Travis will catch it for you!). To do that, run the following on your command line:

npm install
grunt validate

That'll throw an error if the JSON is invalid or if some duplicate names were accidentally introduced. The error messages are pretty clear, I think.

Changelog

Note that this repo does not use semantic versioning. I realize that's pretty non-standard, but every change to this repo is a dataset change which is technically backward incompatible. So although we could be bumping the major version with each release, I think that that would be more problematic: apps can no longer use the ~ and ^ chars in their package.json files to get the latest content so updates would be manual and frequent. If people disagree about this let me know.

  • 1.7.0 - Nov 20, 2020. Data updates: France, Norway, Mali, Croatia, Paraguau, Taiwan, Kosovo, Morocco. Thanks mohouyizme, fabrice102, nicoepp, sc0Vu, ibravoh149 and EPRenaud.
  • 1.6.0 - Mar 28, 2020. Data updates. Spain data updated. Thanks gui64.
  • 1.5.1 - Nov 14, 2019. Data updates. Polish and UK data updated. Thanks nguyennghi3489.
  • 1.5.0 - Sept 22, 2019. Data updates. All versions changes on github will now be listed in milestones.
  • 1.4.7 - Aug 26, 2019. Data updates. Ghana regions updated.
  • 1.4.6 - Aug 14, 2019. Data updates: Hong Kong region shortcode added; Great Britain regions updated; typescript types.
  • 1.4.5 - Nov 28, 2018. Data updates.
  • 1.4.4 - July 8, 2018. Data updates.
  • 1.4.3 - May 29, 2018. More data updates.
  • 1.4.2 - Nov 7, 2017. Data updates.
  • 1.4.1 - Nov 5, 2017. Data updates.
  • 1.4.0 - July 25, 2017. Version bump, no changes.
  • 1.3.6 - July 5, 2017. JS version added of the json file (thanks jayeb!!). Minor bug fixes.
  • 1.3.5 - Apr 20, 2017. Misc updates. Thanks all!
  • 1.3.4 - Dec 31, 2016. Mexico region update - thanks richi3f!
  • 1.3.3 - Dec 22, 2016. French region fix - thanks JMartelot!
  • 1.3.2 - Oct 31, 2016. Lots more region short codes (thanks again, ellenhutchings!).
  • 1.3.1 - Sept 23, 2016. Fix for incorrect shortcodes in Japanese prefectures.
  • 1.3.0 - July 1, 2016. Improved validation added to ensure uniqueness of country names, short codes, region names and shortcodes. Various country region additions / updates.
  • 1.2.1 - Jun 7, 2016. Taiwan country name change. Travis build status added + basic JSON syntax validation.
  • 1.2.0 - May 14, 2015. Lots more region short codes (again, thanks Ellen!). JSON syntax fixes.
  • 1.1.1 - April 30, 2016. JSON syntax fixes.
  • 1.1.0 - April 30, 2016. Looooads of new region shortcodes added thanks to ellenhutchings. Thanks, Ellen!
  • 1.0.0 - April 29, 2016. initial version

License

MIT.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].