首页 > 其他 > 详细

经纬座标转地名(通过腾讯地图接口),函数来源:梦行云软件

时间:2020-10-02 16:56:16      阅读:45      评论:0      收藏:0      [点我收藏+]
function get_gps_to_name_tx($location,$key){
	$url=‘https://apis.map.qq.com/ws/geocoder/v1/?location=‘.$location.‘&key=‘.$key.‘&get_poi=1&poi_options=policy=2‘;
	$c= file_get_contents($url);
	$c=json_decode($c,1);
	if(isset($c[‘result‘][‘pois‘][0][‘title‘])){
		return $c[‘result‘][‘pois‘][0][‘title‘];
	}
	return ‘‘;
}

  

经纬座标转地名(通过腾讯地图接口),函数来源:梦行云软件

原文:https://www.cnblogs.com/monxin/p/13761928.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!