@garvey/gps2distance

1.0.1 • Public • Published

gps2distance

Downloads Version License

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

Readme

Keywords

none

Package Sidebar

Install

npm i @garvey/gps2distance

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

2.66 kB

Total Files

4

Last publish

Collaborators

  • garvey