Php uses a google map application instance. Php uses google map application examples this article mainly introduces php's use of google Map application methods, analyzes google map interface calling techniques and specific usage, and has some reference value for php's use of google Map Application examples
This article mainly introduces how to use google map in php, analyzes the calling skills and usage of google map interfaces, and provides some reference value. For more information, see
This article describes how php uses google map. Share it with you for your reference. The details are 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 wocould 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 is hard coded for demo
$ Location [0] = "51.369318, 2.133457 ";
List ($ stat, $ acc, $ north, $ east) = explode (",", $ location [0]);
The html page is as follows:
The code is as follows:
Well House Manor, Melksham
Type = "text/javascript tutorial"> script