@garvey/gps2distance
v1.0.1
Published
Calculate the distance between two points
Downloads
2
Readme
gps2distance
Calculate the distance between two points
use it
run
npm i @garvey/gps2distance
and write in your file:
const gps2distance = require('@garvey/gps2distance')
// or
import gps2distance from '@garvey/gps2distance'
// and
let gps = [
[116.433,39.941],
[116.345,39.967]
]
console.log(gps2distance(gps)) // 8.038775748893359