Skip to content

jcxldn/geoplanet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Packages

No packages published

Contributors 2

  •  
  •