Phpgoogle map app example code _ PHP Tutorial

Source: Internet
Author: User
Phpgoogle map application instance code. Php Tutorial google map app instance code functionselected ($ param, $ value) {if ($ param $ value) printSELECTED;} # Collectanyformdatatocontrolthedisplay $ scale php Tutorial google map app instance code
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]);

?>



Well House Manor, Melksham
Type = "text/javascript tutorial"> script

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.