Parse Yahoo GeoPlanet data in NodeJS.
npm i geoplanet
The data is downloaded automatically during installation.
Just npm install
and go!
const geoplanet = require("geoplanet");
// Find any place with 'London' in the name in the UK.
await geoplanet({ name: "London", countryCode: "GB" });
// Find any place with the **exact** name of "London" in the UK.
await geoplanet({ name: "London", countryCode: "GB" }, true);
See LICENSE
for full details.
Copyright © 2019-20 James Cahill
Public Domain (Unlicense)
Copyright © 2009 Yahoo! Inc. Some rights reserved.
Licensed under CC-3.0-US
- All uses allowed when attributed.