Permalink
Browse files

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

  • Loading branch information...
2 parents 650ed6c + 257b382 commit b8069d763665c80364b7e0ff4a4c18b299a2c6b1 Kevin Stofan committed Feb 21, 2013
Showing with 21 additions and 0 deletions.
  1. +21 −0 README.md
View
@@ -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

0 comments on commit b8069d7

Please sign in to comment.