Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

country-iso-to-coordinates

martinavagyan1kMIT1.0.2

Get country coordinates and name from ISO code

ISO2, ISO, LAT, LNG, COORDINATES, COUNTRY

readme

Description

Get country latitude and longitude and name based on ISO code.

Example

npm i country-iso-to-coordinates

import IsoToLatLong from 'country-iso-to-coordinates';

const country = IsoToLatLong['GB'];

console.log(country); // { coordinate: [ '55.378051', '-3.435973' ], name: 'United Kingdom' }