From 53857f42f777e2b9753b8f00cce1a60ce3dcb8fd Mon Sep 17 00:00:00 2001
From: Riku <risaku@163.com>
Date: 星期三, 15 十月 2025 22:42:29 +0800
Subject: [PATCH] 2025.10.15 修改高德地图地理逆编码结果,让地理位置信息更加详细

---
 src/test/kotlin/com/flightfeather/uav/Test.kt |   50 ++++++++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 46 insertions(+), 4 deletions(-)

diff --git a/src/test/kotlin/com/flightfeather/uav/Test.kt b/src/test/kotlin/com/flightfeather/uav/Test.kt
index eca3219..63b2781 100644
--- a/src/test/kotlin/com/flightfeather/uav/Test.kt
+++ b/src/test/kotlin/com/flightfeather/uav/Test.kt
@@ -1,9 +1,7 @@
 package com.flightfeather.uav
 
-import com.flightfeather.uav.common.utils.DateUtil
-import com.flightfeather.uav.common.utils.FileExchange
-import com.flightfeather.uav.common.utils.FileUtil
-import com.flightfeather.uav.common.utils.TimeUtil
+import com.flightfeather.uav.common.net.AMapService
+import com.flightfeather.uav.common.utils.*
 import com.flightfeather.uav.domain.entity.BaseRealTimeData
 import com.flightfeather.uav.domain.entity.Company
 import com.flightfeather.uav.domain.entity.GridDataDetail
@@ -163,4 +161,48 @@
 
         println("${period?.first};${period?.second};${period?.third}")
     }
+
+    @Test
+    fun foo18() {
+        println(-4.382398 in 4.0..Double.MAX_VALUE)
+    }
+
+    @Test
+    fun foo19() {
+        val timer = Timer(true)
+//        var running = true
+        val task = object : TimerTask() {
+            override fun run() {
+                println("task run")
+                println(Date())
+//                running = false
+            }
+        }
+        println(Date())
+        timer.schedule(task, 5000)
+        task.cancel()
+        timer.purge()
+
+        val task2 = object : TimerTask() {
+            override fun run() {
+                println("task2 run")
+                println(Date())
+//                running = false
+            }
+        }
+        timer.schedule(task2, 4000)
+//        while (running) {
+//
+//        }
+        val sc = Scanner(System.`in`)
+        while (sc.hasNext()) {
+            println(sc.nextLine())
+        }
+    }
+
+    @Test
+    fun reGeo() {
+        val a = AMapService.reGeo(MapUtil.wgs84ToGcj02(121.45017 to 31.274426))
+        println(a)
+    }
 }
\ No newline at end of file

--
Gitblit v1.9.3