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/sourcetrace/model/DistanceType.kt | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/src/main/kotlin/com/flightfeather/uav/biz/sourcetrace/model/DistanceType.kt b/src/main/kotlin/com/flightfeather/uav/biz/sourcetrace/model/DistanceType.kt
index 4f7af43..ffa489b 100644
--- a/src/main/kotlin/com/flightfeather/uav/biz/sourcetrace/model/DistanceType.kt
+++ b/src/main/kotlin/com/flightfeather/uav/biz/sourcetrace/model/DistanceType.kt
@@ -5,9 +5,13 @@
* @date 2025/5/28
* @author feiyu02
*/
-enum class DistanceType(val des: String) {
- TYPE1("50绫�"),
- TYPE2("50绫� - 500绫�"),
- TYPE3("50绫� - 1鍏噷"),
- TYPE4("50绫� - 2鍏噷")
+enum class DistanceType(val des: String, val disRange: Pair<Double, Double>) {
+ TYPE1("100绫�", .0 to 100.0),
+ TYPE2("50绫� - 500绫�", 50.0 to 500.0),
+ TYPE3("50绫� - 1鍏噷", 50.0 to 1000.0),
+ TYPE4("50绫� - 2鍏噷", 50.0 to 2000.0);
+
+ override fun toString(): String {
+ return this.des
+ }
}
\ No newline at end of file
--
Gitblit v1.9.3