百度URL API实现地址 经纬度互相转换

http://api.map.baidu.com/geocoder/v2/?address=成都市&output=json&ak=CPCLdLhUSh*****************2MvxOBSL

返回代码:

{
    "status":"OK",
    "result":{
        "location":{
            "lng":102.89916,
            "lat":30.367481
        },
        "precise":0,
        "confidence":0,
        "level":"\u7701"
    }
}

http://api.map.baidu.com/geocoder/v2/?callback=renderReverse&location=39.983424,116.322987&output=json&pois=1&ak=您的ak

{
    "status":"OK",
    "result":{
        "location":{
            "lng":117.1,
            "lat":40.13
        },
        "formatted_address":"北京市平谷区东鹿角路",
        "business":"渔阳,滨河,平谷城区",
        "addressComponent":{
            "city":"北京市",
            "direction":"",
            "distance":"",
            "district":"平谷区",
            "province":"北京市",
            "street":"东鹿角路",
            "street_number":""
        },
        "cityCode":131
    }
}


你可能感兴趣的:(百度URL API实现地址 经纬度互相转换)