open-index/open-npm huggingface dataset:
npm package: @mapquest/search
Description: JS interface to MapQuest Search API
Author: Marc Bernardini, Florin Alexandrescu
Latest version: 0.1.0

# MQ Search

A JavaScript interface to the [MapQuest Search API](https://developer.mapquest.com/documentation/search-api/v2/).
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.

```javascript
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);
   })
```
npm package: @mapquest/traffic
Description: JS interface to MapQuest Traffic API
Author: Marc Bernardini
Latest version: 0.1.1

# MQ Traffic

A JavaScript interface to the [MapQuest Traffic API](https://developer.mapquest.com/documentation/traffic-api/).

```javascript
const Traffic = require('@mapquest/traffic');
const traffic = new Traffic({key: 'xxxxx'});

traffic.getFlow(center, width, height, zoom);  //returns geoJSON. It's up to you to style this based property.traffic

traffic.getIncidents(mapBounds); //takes Leaflet style bounds and returns geoJSON collection of points
```