地址工具类优化

This commit is contained in:
attiya 2025-12-04 15:04:45 +08:00
parent 90e4303b46
commit 82c379c557

View File

@ -71,7 +71,7 @@ public class GeoCodingUtil {
* @param location 经纬度
* @return 地址
*/
public String getLocationToAddress(JsonNode location) {
public String getLocationToAddress(JsonNode location) {
//String locationStr = String.format("%f,%f", location.getDouble(LATITUDE_KEY), location.getDouble(LONGITUDE_KEY));
String locationStr = String.format("%f,%f", location.get(LONGITUDE_KEY).asDouble(), location.get(LATITUDE_KEY).asDouble());
Request request = new Request.Builder()