根据经纬度获取地理位置(逆地理编码)

获取高德key

url https://restapi.amap.com/v3/geocode/regeo?parameters
请求方式 GET

通过key与经纬度来获取地理位置

1
2
3
4
5
6
7
8
9
10
$("#run").click(function () {
$.get({
url: "https://restapi.amap.com/v3/place/around",
dataType: "json",
data: {key:"04c0e3f51ca3ef8a45ec00ac9e57150c",location:"120.045846,30.231004",radius:100,types:"190000",extensions:"all"},
success: function (data) {
console.log(data);
}
})
})