Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add installation and brief example of usage
- Loading branch information
Nick White
committed
Jan 19, 2013
1 parent
2cddb30
commit ee49b60
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,18 @@ | ||
# 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); |