From d649f734c44541641158aec2d6b10d630f5a0827 Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期四, 25 十二月 2025 17:25:16 +0800
Subject: [PATCH] 2025.12.19 1. 动态溯源相关分析逻辑调整; 2. 走航报告接口参数调整;
---
src/test/kotlin/com/flightfeather/uav/Test.kt | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diff --git a/src/test/kotlin/com/flightfeather/uav/Test.kt b/src/test/kotlin/com/flightfeather/uav/Test.kt
index db6bf8b..9da42dc 100644
--- a/src/test/kotlin/com/flightfeather/uav/Test.kt
+++ b/src/test/kotlin/com/flightfeather/uav/Test.kt
@@ -16,6 +16,7 @@
import java.io.OutputStreamWriter
import java.text.SimpleDateFormat
import java.util.*
+import kotlin.math.round
/**
* @author riku
@@ -202,6 +203,17 @@
@Test
fun reGeo() {
- AMapService.reGeo(MapUtil.wgs84ToGcj02(121.461753 to 31.252426))
+ val a = 0.7000000000000001
+ println(round(a * 100))
+ }
+
+ @Test
+ fun foo20() {
+ val res = AMapService.polyLineJingAn.split(";")
+ .map { it.split(",")}
+ .map { MapUtil.gcj02ToWgs84(Pair(it[0].toDouble(), it[1].toDouble())) }
+ .map { "${it.first},${it.second}" }
+ .joinToString(";")
+ println(res)
}
}
\ No newline at end of file
--
Gitblit v1.9.3