Merge remote-tracking branch 'origin/cc_20241008_sysBuildAndAdjust' into cc_20241008_sysBuildAndAdjust
This commit is contained in:
@@ -61,6 +61,9 @@ public class GeoMapUtil {
|
||||
}
|
||||
|
||||
private static AddressInfo extractAddressInfo(JSONObject geoJson) {
|
||||
if (geoJson==null){
|
||||
return new AddressInfo();
|
||||
}
|
||||
JSONObject addressComponent = geoJson.getJSONObject("addressComponent");
|
||||
// 根据实际响应结构解析省市区街道信息,此处仅为示例
|
||||
String province = (String) addressComponent.get("province");
|
||||
@@ -78,6 +81,8 @@ public class GeoMapUtil {
|
||||
private String district;
|
||||
private String township;
|
||||
private String address;
|
||||
public AddressInfo(){
|
||||
}
|
||||
|
||||
public AddressInfo(String province, String city, String district, String township, String address) {
|
||||
this.province = province;
|
||||
|
||||
Reference in New Issue
Block a user