New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

waze-traffic

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

waze-traffic

Waze traffic lookup

latest
npmnpm
Version
2.2.0
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

waze-traffic

Travis Build Status Coveralls code coverage status NPM Version

This is an unofficial module to fetch traffic info from Waze, which includes traffic alerts and jams that happens around an area that you defined.

This was built with ES2015 in mind, so you need to use nodejs 6 minimum, or use babel with babel-preset-es2015 preset.

First, a warning.

This module doesn't affiliate with waze in any way, and you shouldn't treat this module as official way to interact with Waze's API.

Install

## Yarn
$ yarn add waze-traffic

## NPM
$ npm install --save waze-traffic

Usage

const waze = require('waze-traffic');

waze.getTraffic({
    top: '-6.89206',
    right: '107.64529',
    bottom: '-6.89883',
    left: '107.63186',
}).then(info => {
    console.log(info);
});

API

####getTraffic([boundary])

#####boundary

top (required)

Type: string

The top longitude boundary of the area

right (required)

Type: string

The right latitude boundary of the area

bottom (required)

Type: string

The bottom longitude boundary of the area

left (required)

Type: string

The left latitude boundary of the area

Release History

see CHANGELOG.md

License

Copyright (c) 2017 Achmad Mahardi, Ahmad Anshorimuslim Licensed under the MIT license.

Standard - JavaScript Style Guide

FAQs

Package last updated on 14 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts