Skip to content

Latest commit

 

History

History
47 lines (28 loc) · 1.24 KB

README.md

File metadata and controls

47 lines (28 loc) · 1.24 KB

geoplanet

Source Code npm node Travis (.com) Codecov

Parse Yahoo GeoPlanet data in NodeJS.

Installation

npm i geoplanet

Do I need the data?

The data is downloaded automatically during installation.

Just npm install and go!

API

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);

Legal

See LICENSE for full details.

Program Code

Copyright © 2019-20 James Cahill

Public Domain (Unlicense)

Yahoo! GeoPlanet™ Database

Copyright © 2009 Yahoo! Inc. Some rights reserved.

Licensed under CC-3.0-US - All uses allowed when attributed.