compare-latlong
v1.0.4
Published
Just give two different latitutde , longitude and a unit (K-KM, M-Mile) for measuring distance b/w them.
Downloads
2
Maintainers
Readme
Project Title
compare-latlong
Getting Started
You just need to pass source lat-long , destination lat-long and unit of distance (K=kilometer, M= Miles) as a parameter and resultant will be the distance b/w them.
Prerequisites
You should have node version greater than 6.0.0
node -v
Installing
npm i compare-latlong
Example
Steps-
var difference = require('compare-latlong');
//Distance b/w the source and destination
var distance = difference(lat1, long1, lat2, long2, "K");
Authors
- Arpit Shukla
License
This project is licensed under the MIT License - see the LICENSE.md file for details
Acknowledgments
- stackoverflow