@mapquest/search

0.1.0 • Public • Published

MQ Search

A JavaScript interface to the MapQuest Search API. You must obtain a client ID before using this service. This module can be used in the browser and server side. The results are returned as a GeoJSON FeatureCollection.

const Search = require('@mapquest/search');
const search = new Search({key: 'xxxxx'})

search.radius({lat: 39.75, lng: -104.99}, {radius: 10}) //radius in miles
  .then(results => {
    console.log(results);
   })

search.corridor(routeSessionId, {})  //route Session ID from the Directions API followed by options
  .then(results => {
    console.log(results);
   })

Readme

Keywords

none

Package Sidebar

Install

npm i @mapquest/search

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • ignigena