, (*1)
This library is aimed at providing easy to use country data in JSON
format for all programming languages. Feel free to contribute., (*2)
Table Of Content
- Information
-
Installation
, (*3)
This library includes information on countries in multiple languages., (*4)
Here is a list of information available for countries:, (*5)
-
ISO 3166-1 alpha-2 Two-letter country codes defined in ISO 3166-1
-
ISO 3166-1 alpha-3 Three-letter country codes defined in ISO 3166-1
-
Names Country name in multiple languages, currently only English, French and German
-
Currency Currency code (eg. EUR)
-
Continent Continent code (eg. EUR)
- Population
-
Area Area in square KM
- Capital
-
Coordinates Latitude and Longitude for center as well as North, East, South and West coorinates of bounding box
-
Polygon Shape of the country
- Time Zone
- Regions
Here is a list of information available for regions:, (*6)
-
Names Country name in multiple languages, currently only English, French and German
-
Two letter code Two-letter region codes (eg. CA)
-
Four letter code Four-letter region codes (eg. US-CA)
-
Type Region type (eg. Province, State, Territory, District)
- Time Zone
-
Coordinates Latitude and Longitude for center as well as North, East, South and West coorinates of bounding box
, (*7)
Installation
, (*8)
JavaScript/Node
To install this library using npm, run the following command:, (*9)
npm install @geobase/countries-data
, (*10)
PHP
To install this library using composer, run the following command:, (*11)
composer require geobase/countries-data
, (*12)
Download
Alternatively, you can download the latest release., (*13)