0.0.4 • Published 6 years ago

@mapquest/geocoding v0.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

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
   })
0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago