geodistance-super
v1.0.1
Published
given locations bewteen distance
Downloads
6
Readme
geodistance
Package setup
yarn add geodistance-super
or
npm i geodistance-super
Quick setup
main.js
var calculate = require('geodistance-super')
let lat1 = 47.91844, lng1 = 106.88467, lat2 = 47.90068, lng2 = 106.87918;
let unit = 'km'
calculate(lat1, lng1, lat2, lng2, unit).then(data=>{
console.log(data)
})
Result:
{
string: '2.016769830436128 km',
number: 2.016769830436128
}