distance-lat-lng
v1.0.3
Published
Calculate distance between two latlng points without any third party dependency
Downloads
6
Maintainers
Readme
Calculate Distance in Kilometers and Miles between two lat lng positions
No third party dependency required for distance calculation between two points, just require this package and move on.
Installation
npm i distance-lat-lng --save
Usage
var distance = require("distance-lat-lng");
var miles = distance.calculateMiles(LongitudeStart , LongitudeEnd); //Response will be distance in miles between given two points
console.log(miles);
var kilometres = distance.calculateKilometres(LongitudeStart , LongitudeEnd); //Response will be distance in Kilometres between given two points
console.log(kilometres);