2.2.0 • Published 5 years ago

waze-traffic v2.2.0

Weekly downloads
2
License
MIT
Repository
-
Last release
5 years ago

waze-traffic

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.

2.2.0

5 years ago

2.1.0

5 years ago

2.0.1

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago