@mapquest/traffic

0.1.1 • Public • Published

MQ Traffic

A JavaScript interface to the MapQuest Traffic API.

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

Readme

Keywords

none

Package Sidebar

Install

npm i @mapquest/traffic

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • ignigena