From 3f43e40ed1a1e9f66b3ad2862da9dbc4b710c712 Mon Sep 17 00:00:00 2001
From: nishiwei <13126973358@163.com>
Date: Fri, 23 Oct 2026 14:09:47 +0800
Subject: [PATCH] 智云3.0机场1适配内容提交
---
ard-work/src/main/java/com/ard/work/component/websocket/handler/NoFlyDistanceManager.java | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/ard-work/src/main/java/com/ard/work/component/websocket/handler/NoFlyDistanceManager.java b/ard-work/src/main/java/com/ard/work/component/websocket/handler/NoFlyDistanceManager.java
index 70aced6..6e89232 100644
--- a/ard-work/src/main/java/com/ard/work/component/websocket/handler/NoFlyDistanceManager.java
+++ b/ard-work/src/main/java/com/ard/work/component/websocket/handler/NoFlyDistanceManager.java
@@ -54,13 +54,10 @@
List<Vertex> polygon = zone.getVertices();
if (polygon == null || polygon.size() < 3) continue;
- double distanceDeg = NoFlyZoneUtils.pointToPolygonDistance(current, polygon);
+ double distance = NoFlyZoneUtils.pointToPolygonDistance(current, polygon);
- // ⭐ 转成米
- double distanceMeter = NoFlyZoneUtils.degDistanceToMeter(distanceDeg, current.y);
-
- if (distanceMeter < minDistance) {
- minDistance = distanceMeter;
+ if (distance < minDistance) {
+ minDistance = distance;
nearestZone = zone;
}
}
--
Gitblit v1.9.3