# coordsdistance **Repository Path**: lujihong/coordsdistance ## Basic Information - **Project Name**: coordsdistance - **Description**: 计算两个多个坐标点之间的距离 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-03-16 - **Last Updated**: 2021-03-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # GPS 坐标之间距离计算 > 引用 ``` npm install coordsdistance ``` > 使用方式 ``` const distance = require('coordsdistance'); let coords = [[31.195864,121.580739],[31.195264,121.580439]];// [[lat,lng]]; let lens = distance(coords); console.log(lens); //单位米 ```