@geobase/countries-data
v1.0.5
Published
Country data in JSON
Downloads
174
Readme
This library is aimed at providing easy to use country data in JSON format for all programming languages. Feel free to contribute.
Table Of Content
Information
This library includes information on countries in multiple languages.
Here is a list of information available for countries:
- 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:
- 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
Installation
JavaScript/Node
To install this library using npm, run the following command:
npm install @geobase/countries-data
PHP
To install this library using composer, run the following command:
composer require geobase/countries-data
Download
Alternatively, you can download the latest release.