Notoriously Pedantic Magistrate

    @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

    Keywords

    none

    Install

    npm i @mapquest/traffic

    DownloadsWeekly Downloads

    0

    Version

    0.1.1

    License

    MIT

    Last publish

    Collaborators

    • thillerson-mq
    • mbernardini
    • cfrancis58