Socket
Socket
Sign inDemoInstall

mapzen-search

Package Overview
Dependencies
4
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    mapzen-search

Wrapper for the Mapzen Search API


Version published
Maintainers
1
Install size
1.62 MB
Created

Readme

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

Last updated on 31 May 2017

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc