From 244228feba355b4df8e160fd4c7c353f674044f1 Mon Sep 17 00:00:00 2001
From: “mitao” <“2763622819@qq.com”>
Date: 星期六, 14 二月 2026 17:08:05 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
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