Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mapquest/geocoding

Package Overview
Dependencies
Maintainers
4
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mapquest/geocoding

MapQuest Geocoding

  • 0.0.4
  • latest
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

MQ Geocoding

A JavaScript interface to the MapQuest Geocoding API. You must obtain a key before using this service. This module can be used in the browser and server side.

Examples:

//setup the module
const Geocoding = require('@mapquest/geocoding');
const client = new Geocoding({key: 'xxxxxxx'})

//forward geocode
client.forward('1555 Blake St. Denver, CO 80204')
  .then(result => {
    console.log(result); // returns a GeoJson point of the first match
   })

//reverse geocode
client.reverse(39.75, -104.99)  //lat, lng
  .then(result => {
    console.log(result.addressString); //single line address, ie: "1555 Blake St., Denver, CO 80204"
    console.log(result.location); //geocoding service response
   })

FAQs

Package last updated on 03 Jan 2018

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