Geographical Lat, Lng distance
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
coverage
tests
.gitignore
.jscsrc
.jshintrc Setup travis build Aug 5, 2014
.travis.yml
CONTRIBUTING.md
Gruntfile.js
License.txt
README.md Add coveralls.io badge to readme Aug 26, 2014
index.js
package.json

README.md

Build Status devDependency Status Monthly downloads Coverage Status License

GeoDistance.js

A Node.js module which takes 2 Lat+Lng (Geolocation) points and returns the distance between the two points in Meters

Installation

npm install geo-distance-js


Function getDistance(toLat, toLng, fromLat, fromLng);

Add the module as a variable in your .js file

var dist = require('geo-distance-js');

Run the function with

dist.getDistance(toLat, toLng, fromLat, fromLng);