Socket
Socket
Sign inDemoInstall

mapzen-search

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mapzen-search

Wrapper for the Mapzen Search API


Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

CircleCI

JavaScript wrapper for the Mapzen Search API

Install

npm install --save mapzen-search

Getting started

Import module and pass required options...

import mapzenSearch from 'mapzen-search'
const mz = mapzenSearch({
  apiKey: 'your-mapzen-api-key',
  fetch: window.fetch, // or any compliant ponyfill (e.g. https://github.com/developit/unfetch)
})

The following methods are available. See Mapzen Documentation for available options.

mz.search({
  text: 'Melbourne, Australia'
}).then(response => {
  // handle result
})

Reverse Geocoding

mz.reverse({
  point.lat: 48.858268,
  point.lon: 2.294471,
}).then(response => {
  // handle result
})

Autocomplete

mz.autocomplete({
  text: 'New Yo',
}).then(response => {
  // handle result
})
mz.structuredSearch({
  locality: 'London'
}).then(response => {
  // handle result
})

FAQs

Package last updated on 31 May 2017

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