腾讯地图调用获取经度纬度代码
//腾讯地图拼接好的数据返回经度和纬度 function getPositionInfo($address) { header("Content-type:text/html;charset=utf-8"); //你腾讯地图的k值 $ak = 'KDSDS-47CDS-G3NU5-DB3TB-21212-5UBD7'; $url = "http://apis.map.qq.com/ws/geocoder/v1/?address={$address}&key={$ak}"; $json = file_get_contents($url); $data = json_decode($json,true); //return $data['result']['location']; return $data; }