Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mavagio/country-iso-to-coordinates
Map country ISO code to coordinates and name
https://github.com/mavagio/country-iso-to-coordinates
Last synced: about 1 month ago
JSON representation
Map country ISO code to coordinates and name
- Host: GitHub
- URL: https://github.com/mavagio/country-iso-to-coordinates
- Owner: mavagio
- License: mit
- Created: 2020-05-14T10:20:43.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T05:53:16.000Z (about 2 years ago)
- Last Synced: 2024-11-14T11:13:02.347Z (2 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/country-iso-to-coordinates
- Size: 778 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### Description
Get country latitude and longitude and name based on ISO code.### Example
```
npm i country-iso-to-coordinates
```
```jsimport IsoToLatLong from 'country-iso-to-coordinates';
const country = IsoToLatLong['GB'];
console.log(country); // { coordinate: [ '55.378051', '-3.435973' ], name: 'United Kingdom' }
```