geobase/countries-data

Country data in JSON

1.0.5 2017-03-06 20:34 UTC

This package is not auto-updated.

Last update: 2024-11-10 01:49:24 UTC


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

  1. Information
  2. Installation * JavaScript/Node * PHP * Download

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.