|
@@ -161,7 +161,7 @@ public class ProductManagementServiceImpl implements IProductManagementService{
|
|
//根据装货城市获取经纬度
|
|
//根据装货城市获取经纬度
|
|
String str = EntCoordUtil.getCoordinate(place);
|
|
String str = EntCoordUtil.getCoordinate(place);
|
|
// 参数解释:lng:经度,lat:维度。KEY:高德地图key
|
|
// 参数解释:lng:经度,lat:维度。KEY:高德地图key
|
|
- String urlString = "https://restapi.amap.com/v3/direction/driving?origin=" + userLongitude + "," +userLatitude+ "&destination=" + longitude + "," + latitude + "&key=" + KEY ;
|
|
|
|
|
|
+ String urlString = "https://restapi.amap.com/v3/direction/driving?origin=" + str + "&destination=" + longitude + "," + latitude + "&key=" + KEY ;
|
|
//输入流的缓冲
|
|
//输入流的缓冲
|
|
StringBuffer sb = new StringBuffer();
|
|
StringBuffer sb = new StringBuffer();
|
|
try {
|
|
try {
|