Socket
Socket
Sign inDemoInstall

@planet/places

Package Overview
Dependencies
Maintainers
14
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@planet/places

Install with `npm`:


Version published
Weekly downloads
1
Maintainers
14
Weekly downloads
 
Created
Source

Planet Places

Install with npm:

npm install @planet/places

places.match(query)

Get a list of places that match the given query string. Returns a list of objects sorted by quality. Each place has an id and name property. For states and regions, the admin property gives the country name.

places.wikidata(wikidataId)

Get a place given a Wikidata identifier.

places.fetch(id)

Fetch a GeoJSON feature representing the place. Returns a promise that resolves to feature. The id should come from a place result returned from the places.match() or places.wikidata() functions.

FAQs

Package last updated on 22 Sep 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc