PHP uses Google Maps app instance
This article mainly introduces PHP using Google Maps application method, analysis of the Google Map interface call skills and specific usage, with a certain reference value, the need for friends can refer to the following
The example in this article describes how PHP uses the Google Maps app. Share to everyone for your reference. Specific as follows:
The PHP code is as follows:
The code is as follows:
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 tutorial 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 are hard coded for demo
$location [0]= "200,8,51.369318,-2.133457";
List ($stat, $ACC, $north, $east) = Explode (",", $location [0]);
The HTML page is as follows:
The code is as follows:
<title>Well house Manor, Melksham</title>
Well house Manor, Melksham
Business Hotel in Melksham
all rooms fitted to superior
Internet Access throughout
plenty of parking and close to town centre
Well House Manor website
This was a sample PHP page with Google Maps
Teach how to write pages like this
Date-
|
|
I hope this article is helpful to everyone's PHP programming.
http://www.bkjia.com/PHPjc/975885.html www.bkjia.com true http://www.bkjia.com/PHPjc/975885.html techarticle PHP Using Google Maps application examples This article mainly introduces the use of Google Maps in PHP application method, analysis of the Google Map interface call skills and specific usage, with a certain reference value ...