PHP地址名称转座标(腾讯地图接口),涵数来源:梦行云软件
时间:2020-11-11 15:45:09
收藏:0
阅读:16
function get_address_gps_tx($map_key,$address){ //地址名称转座标 $r=file_get_contents(‘https://apis.map.qq.com/ws/geocoder/v1/?address=‘.$address.‘&key=‘.$map_key); $r=json_decode($r,1); return $r; //$r[‘result‘][‘location‘][‘lng‘] $r[‘result‘][‘location‘][‘lat‘] }
评论(0)