From b10326ffcffe34e77f493df5ef79bb855e792cd0 Mon Sep 17 00:00:00 2001 From: Xc Date: Tue, 2 Dec 2025 09:51:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=86=E4=B8=80=E8=A1=8C?= =?UTF-8?q?=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/utils/geo.d.ts | 2 +- lib/utils/geo.js | 2 +- src/utils/geo.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/utils/geo.d.ts b/lib/utils/geo.d.ts index 8a5e7a6..9567e31 100644 --- a/lib/utils/geo.d.ts +++ b/lib/utils/geo.d.ts @@ -1,5 +1,5 @@ /** - * 计算地球上两点之间的球面距离 + * 计算地球上两点之间的球面距离(单位:cm) */ export declare function getDistanceBetweenPoints(lat1: number, lon1: number, lat2: number, lon2: number): number; /** diff --git a/lib/utils/geo.js b/lib/utils/geo.js index e4cbcc5..022e93d 100644 --- a/lib/utils/geo.js +++ b/lib/utils/geo.js @@ -2,7 +2,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.gcj02towgs84 = exports.wgs84togcj02 = exports.gcj02tobd09 = exports.bd09togcj02 = exports.getDistanceBetweenPoints = void 0; /** - * 计算地球上两点之间的球面距离 + * 计算地球上两点之间的球面距离(单位:cm) */ function getDistanceBetweenPoints(lat1, lon1, lat2, lon2) { // 转为弧度 diff --git a/src/utils/geo.ts b/src/utils/geo.ts index 17ead86..b1552cc 100644 --- a/src/utils/geo.ts +++ b/src/utils/geo.ts @@ -1,5 +1,5 @@ /** - * 计算地球上两点之间的球面距离 + * 计算地球上两点之间的球面距离(单位:cm) */ export function getDistanceBetweenPoints(lat1: number, lon1: number, lat2: number, lon2: number) { // 转为弧度