npm.io
0.0.3 • Published 7 years ago

manhattan-distance

Licence
MIT
Version
0.0.3
Deps
1
Size
4 kB
Vulns
5
Weekly
0

Manhattan Distance

A small library that calculate manhattan distance between 2 lat lngs

Installation

npm install manhattan-distance

Usage

var manhattan = require('manhattan-distance');

var manhattanDistance = manhattan(12.795251, 80.198697,12.8708,80.1078);

Output should be 18.51KM

Tests

npm test

Contributing

In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.

Keywords