ruoyi-admin/src/main/java/com/ruoyi/web/util/AmapApiClient.java
@@ -11,7 +11,7 @@ private static final OkHttpClient client = new OkHttpClient(); public static String getDrivingRoute(double startLat, double startLon, double endLat, double endLon) throws IOException { String url = "https://restapi.amap.com/v3/direction/walking?" + String url = "https://restapi.amap.com/v3/direction/driving?" + "origin=" + startLon + "," + startLat + "&destination=" + endLon + "," + endLat + "&key=" + KEY;