09月22日, 2014 1953次
腾讯lbs 位置服务 签名php
https://lbs.qq.com/FAQ/server_faq.html#1
免费用量比较少 个人用户只有一次 需要定制
<?php $sec="xxx"; $url="https://apis.map.qq.com/ws/geocoder/v1?"; $key="cxcxKD"; $addr="陈x 13043332222 海南省省直辖县级行政区划定安县定城镇小飞飞"; //$region="®ion=北京"; /* $pam="key=".$key."&smart_address=".($addr); $sign = md5('/ws/geocoder/v1?key='.$key.'&smart_address='.$addr.$sec); $url1 = 'https://apis.map.qq.com/ws/geocoder/v1?key='.$key.'&smart_address='.urlencode($addr).'&sig='.$sign; file_put_contents("url.txt",$url1."\n",FILE_APPEND); echo $url1."\n"; */ $pam="key=".$key."&smart_address=".($addr); //$pam2="smart_address=".$addr."&key=".$key; $last_str="/ws/geocoder/v1?"."key=".$key."&smart_address=".$addr.$sec; echo $last_str ."\n"; $sign=md5($last_str); $url_last=$url."key=".$key."&smart_address=".urlencode($addr)."&sig=".$sign; echo $url_last; $cmd='curl "'.$url_last.'"'; echo "---------------\n"; print_r($cmd); echo "---------------\n"; system($cmd); file_put_contents("url.txt",$url_last."\n",FILE_APPEND); die();
暂无留言,赶快评论吧