From 3bb68de5e58ec0935061ac7e143ee9d818b8c449 Mon Sep 17 00:00:00 2001
From: liujie <1793218484@qq.com>
Date: 星期六, 14 二月 2026 15:55:29 +0800
Subject: [PATCH] 点位修改

---
 xp-robotaxi-map-boot/src/main/java/com/xiaopeng/map/utils/GaodeMapService.java |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/xp-robotaxi-map-boot/src/main/java/com/xiaopeng/map/utils/GaodeMapService.java b/xp-robotaxi-map-boot/src/main/java/com/xiaopeng/map/utils/GaodeMapService.java
index 95de89e..2fd921e 100644
--- a/xp-robotaxi-map-boot/src/main/java/com/xiaopeng/map/utils/GaodeMapService.java
+++ b/xp-robotaxi-map-boot/src/main/java/com/xiaopeng/map/utils/GaodeMapService.java
@@ -8,6 +8,7 @@
 import org.apache.http.impl.client.CloseableHttpClient;
 import org.apache.http.impl.client.HttpClients;
 import org.apache.http.util.EntityUtils;
+import org.springframework.beans.factory.annotation.Value;
 
 import java.net.URLEncoder;
 import java.nio.charset.StandardCharsets;
@@ -18,12 +19,10 @@
     private static final String WALKING_API_URL = "https://restapi.amap.com/v3/direction/walking";
     
     // 你的高德地图API Key
-    private String apiKey;
+//    @Value("${map.apikey}")
+    private String apiKey="66ae577f63898dae3016d599fda57221";
     
-    public GaodeMapService(String apiKey) {
-        this.apiKey = apiKey;
-    }
-    
+
     /**
      * 获取步行路径规划
      * @param origin 起点坐标,格式:经度,纬度

--
Gitblit v1.7.1