gps-distance:用于在 GPS 坐标之间执行距离计算的节点模块

时间:2021-06-09 19:41:11
【文件属性】:
文件名称:gps-distance:用于在 GPS 坐标之间执行距离计算的节点模块
文件大小:23KB
文件格式:ZIP
更新时间:2021-06-09 19:41:11
JavaScript gps-距离 用于在 GPS 坐标之间执行距离计算的节点模块 安装 npm install gps-distance 例子 为方便起见, gps-distance支持两种语法。 您可以仅在两点之间进行测量,并在 GPS 坐标中作为距离的直接参数以(source_lat, source_lon, destination_lat, destination_lon) ,或者您可以使用[lat,lon]格式的点数组。 请参阅下面的示例。 点对点 var distance = require ( 'gps-distance' ) ; // Measure between two points: var result = distance ( 45.527517 , - 122.718766 , 45.373373 , - 121.693604 ) ; // result is 81.78450
【文件预览】:
gps-distance-master
----lib()
--------distance.js(1KB)
----LICENSE(1KB)
----test()
--------test.js(1KB)
--------oregon.gpx(150KB)
----README.md(2KB)
----Makefile(62B)
----.gitignore(97B)
----package.json(632B)

网友评论