Permalink
Browse files

Create README.md

  • Loading branch information...
TankofVines committed Jan 24, 2013
1 parent 33be756 commit 89b136f84688631395db745e44b2661c95d700a3
Showing with 21 additions and 0 deletions.
  1. +21 −0 README.md
View
@@ -0,0 +1,21 @@
+node-vincenty
+=============
+
+Repacked 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('vincenty');
+
+var distance = vincenty.distVincenty(30.5, -100.6, 31.7, -101.8);
+console.log(distance);
+
+$ 175518.816

0 comments on commit 89b136f

Please sign in to comment.