1.0.0 • Published 6 years ago

getdistance v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

Distance Calculator

simple tool to calculate distance between two coordinates

How to install

npm install --save getdistance

How to use

var getDistance = require("getdistance")

console.log(getDistance(106.785329, -6.259296, 106.783956, -6.259093, 'm'))

getDistance(lat1, lng1, lat2, lng2, unit) ||

unit berupa m = meter km = kilometer //default