Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'master' of https://github.com/kas673/node-vincenty

  • Loading branch information...
commit b8069d763665c80364b7e0ff4a4c18b299a2c6b1 2 parents 650ed6c + 257b382
Kevin Stofan authored
Showing with 21 additions and 0 deletions.
  1. +21 −0 README.md
View
21 README.md
@@ -0,0 +1,21 @@
+node-vincenty
+=============
+
+Repackaged some vanilla js that calculates metric distance between two latitude and longitude coordinates based on Chris Vereen's script here:
+
+http://www.movable-type.co.uk/scripts/latlong-vincenty.html
+
+The module exports one function distVincenty(lat1, long1, lat2, long2) which accepts four parameters representing the latitude and longitude of the input coordinates.
+
+Install:
+
+ npm install node-vincenty
+
+Example:
+
+ var vincenty = require('node-vincenty');
+
+ var distance = vincenty.distVincenty(30.5, -100.6, 31.7, -101.8);
+ console.log(distance);
+
+$ 17551.816
Please sign in to comment.
Something went wrong with that request. Please try again.