0.1.1 • Published 6 years ago

@mapquest/traffic v0.1.1

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

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