README
compare-lat-lon
Compares the distance between two sets of coordinates
adapted from http://stackoverflow.com/a/18170277
Information
Package | compare-lat-lon |
Description |
Compares the distance between two sets of coordinates
Also calculates the radius of the earth |
Node Version | >= 4 |
Usage
Install
$ npm install --save compare-lat-lon
var compare = require('compare-lat-lon');
compare('37.795831', '-122.396472', '40.767904', '-73.975448'); // => 4127.676959594074