PHP uses Google Maps app instance, phpgoogle application Example
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:
Copy the code code as follows: function selected ($param, $value) {
if ($param = = $value) print "SE Lected ";
}
# 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 goo GLE 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 was 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:
Copy the Code code as follows:
Well house Manor, Melksham
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-<?= date ("F, JS L Y")?>
|
|
I hope this article is helpful to everyone's PHP programming.
http://www.bkjia.com/PHPjc/935482.html www.bkjia.com true http://www.bkjia.com/PHPjc/935482.html techarticle PHP uses Google Maps application examples, Phpgoogle application Examples of this article describes how PHP uses Google Maps application method. Share to everyone for your reference. The following: PHP code is as follows: ...