function jinwei_change_address($lat,$lng)
{
$appkey = '';
$type = 'baidu';
$url = "https://api.jisuapi.com/geoconvert/coord2addr?appkey=$appkey&lat=$lat&lng=$lng&type=$type";
$result = httpRequest($url, 'POST');
$jsonarr = json_decode($result, true);
return $jsonarr['result'];
}
{
"status": 0,
"msg": "ok",
"result": {
"lat": "30.2812129803",
"lng": "120.11523398",
"type": "google",
"address": "中国浙江省杭州市西湖区文二西路11号 邮政编码: 310000",
"country": "中国",
"province": "浙江省",
"city": "杭州市",
"district": "西湖区",
"description": ""
}
}