compare-lat-lon
Compares the distance between two sets of coordinates
Last updated 4 years ago by stevelacy .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install compare-lat-lon 
SYNC missed versions from official npm registry.

compare-lat-lon

Build Status NPM version

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

LICENSE MIT

Current Tags

  • 0.1.0                                ...           latest (4 years ago)

1 Versions

  • 0.1.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |