Home> php教程> PHP源码> body text

php 调用goolge地图代码

WBOY
Release: 2016-06-08 17:29:39
Original
1399 people have browsed it

require('path.inc.php');
header('content-Type: text/html; charset=utf-8');
$borough_id = intval($_GET['id']);
if(!$borough_id){
echo '

';
exit;
}
$borough = new Borough($query);
$boroughInfo = $borough->getInfo($borough_id,'*',1,true);
//charsetIconv($boroughInfo,'gbk','utf-8');
$pos = strpos($boroughInfo['borough_name'],'(');
if($pos!==false){
$boroughInfo['borough_name'] = substr($boroughInfo['borough_name'],0,$pos);
}

$boroughInfo['borough_address'] = iconv('gb2312','utf-8',$boroughInfo['borough_address']);
$boroughInfo['borough_name'] = iconv('gb2312','utf-8',$boroughInfo['borough_name']);

$pos = strpos($boroughInfo['borough_name'],'(');
if($pos!==false){
$boroughInfo['borough_name'] = substr($boroughInfo['borough_name'],0,$pos);
}
if(strpos($boroughInfo['borough_name'],'福州')===false){
$boroughInfo['borough_name'] = "福州".$boroughInfo['borough_name'];
}
?>




小区地图









Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!