您好,欢迎访问一九零五行业门户网

php使用google地图应用实例_PHP

本文实例讲述了php使用google地图应用方法。分享给大家供大家参考。具体如下:
php代码如下:
代码如下:
function selected ( $param , $value ) { 
if ( $param == $value ) print selected ; 
}
# collect any form data to control the display
$scale = 10 ; 
$maptype = g_normal_map ; 
if ( $_request [ scale ]) $scale = $_request [ scale ]; 
if ( $_request [ maptype ]) $maptype = $_request [ maptype ];
# geocoding your location 
# note - you would cache this in a file 
# the key is domain specific - your google maps教程 key
/* 
$location = file(http://maps.google.com/maps/geo?q=48+spa+road,+melksham,+uk& 
output=csv&key=abqiaaaavp3__hwvt3vkixiibsw0axquki_6t1bh2p0vci_q8jfpn8qdnbqmnnelj 
xh9czilkau_byscxtes_a); 
*/ 
# following line is hard coded for demo 
$location [ 0 ]= 200,8,51.369318,-2.133457 ; 
list ( $stat , $acc , $north , $east ) = explode ( , , $location [ 0 ]);
html页面如下:
代码如下:
well house manor, melksham 
type=text/javascript教程>
well house manor, melksham
• business hotel in melksham
• all rooms fitted to superior standard
• internet access throughout
• plenty of parking and close to town centre
well house 
manor website 
change to
>overview 
>county 
>town 
>street 
>building

normal map 

satellite data 
>
hybrid
this is a sample php page with google maps
teach you how to write pages like this
date -
希望本文所述对大家的php程序设计有所帮助。
其它类似信息

推荐信息