waze-traffic

2.2.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i waze-traffic

Weekly Downloads

2

Version

2.2.0

License

MIT

Unpacked Size

9.33 kB

Total Files

16

Last publish

Collaborators

  • maman