npm.io
1.4.0 • Published 7 years ago

node-geoutils

Licence
MIT
Version
1.4.0
Deps
0
Size
21 kB
Vulns
0
Weekly
0

Geo utils

Usage

const geoUtils = require('node-geoutils')

const { latitude, longitude, country } = geoUtils.getCountryInfo('FR') // you can also do geoUtils.getCountryInfo('France')

console.log('Latitude:', latitude) // outputs 'Latitude: 46.227638'
console.log('Longitude:', longitude) // outputs 'Longitude: 2.213749'
console.log('Country:', country) // outputs 'Country: France'