Google Map API

It’s too much easy to integrate Google map in your site .For this, it is needed to be downloaded the GoogleMapAPI class from this link After then, Google Map API key is mandatory to create. You can register free here

I have implemented this script using smarty. Since I discussed installation technique of smarty in my previous post, so I used only two file named map.html and map.php. Now follow me
Step 1: Unzip the downloaded file. You need only GoogleMapAPI.class.php file
Step 2: Copy and paste the following code in map.html file

Step 3: Copy and paste the following code in map.php file

click on images to enlarge
If you would like to know details about this class,read the README file
Output of this script will like that:
http://www.phpinsider.com/php/code/GoogleMapAPI/demo/

Very Interesting…..isn’t it?

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: