suddi / woeid

Compute Yahoo! Where On Earth IDs for all countries

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

woeid

CircleCI codecov Codacy Badge npm npm David David license

codecov

Compute Yahoo! Where On Earth IDs for all countries.

Installation

npm install --save woeid

Usage

getWoeid

const woeid = require('woeid');

woeid.getWoeid('FRA');
// {
//     'country': 'France',
//     'woeid': 23424819,
//     'iso-3166-alpha3': 'FRA',
//     'iso-3166-alpha2': 'FR'
// }

woeid.getWoeid('FR');
// {
//     'country': 'France',
//     'woeid': 23424819,
//     'iso-3166-alpha3': 'FRA',
//     'iso-3166-alpha2': 'FR'
// }

getCountry

const woeid = require('woeid');

woeid.getCountry(23424819);
// {
//     'country': 'France',
//     'woeid': 23424819,
//     'iso-3166-alpha3': 'FRA',
//     'iso-3166-alpha2': 'FR'
// }

About

Compute Yahoo! Where On Earth IDs for all countries

License:MIT License


Languages

Language:JavaScript 100.0%