PHP using Google Maps app Example _php tutorial

Source: Internet
Author: User

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 ...

  • 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.