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/main/kotlin/com/flightfeather/uav/biz/dataprocess/RoadSegment.kt |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/main/kotlin/com/flightfeather/uav/biz/dataprocess/RoadSegment.kt b/src/main/kotlin/com/flightfeather/uav/biz/dataprocess/RoadSegment.kt
index 1b099a3..8e21070 100644
--- a/src/main/kotlin/com/flightfeather/uav/biz/dataprocess/RoadSegment.kt
+++ b/src/main/kotlin/com/flightfeather/uav/biz/dataprocess/RoadSegment.kt
@@ -50,6 +50,7 @@
         // 閫氳繃楂樺痉API鏌ヨ鍧愭爣瀵瑰簲鐨勮矾娈�
         val segmentInfoList = mutableListOf<SegmentInfo>()
         gdGPS.forEachIndexed { i, pair ->
+            Thread.sleep(400)
             val address = AMapService.reGeo(pair)
             segmentInfoList.add(SegmentInfo().apply {
                 missionCode = mission.missionCode
@@ -62,7 +63,7 @@
                 districtName = address.district
                 townCode = address.towncode
                 towmName = address.township
-                street = address.street
+                street = address.address
             })
         }
         // 缁撴灉鍏ュ簱
@@ -96,7 +97,7 @@
     private fun saveResult(segmentInfoList:List<SegmentInfo>) {
         val res = mutableListOf<SegmentInfo>()
         segmentInfoList.forEach { s ->
-            // 鍒ゆ柇褰撳墠璁板綍鍜屼笂涓褰曟槸鍚︽暟鎹悓涓�鏉¢亾璺�
+            // 鍒ゆ柇褰撳墠璁板綍鍜屼笂涓褰曟槸鍚﹀睘浜庡悓涓�鏉¢亾璺�
             if (res.isNotEmpty()) {
                 val lastOne = res.last()
                 // 鑻ュ睘浜庡悓涓�閬撹矾锛屽悎骞�

--
Gitblit v1.9.3