PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Rahul   Google Map Plotter   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example file
Class: Google Map Plotter
Find and display a given location with Google Maps
Author: By
Last change:
Date: 15 years ago
Size: 756 bytes


Class file image Download
 * This file is a example of gmapPlotter Class
 * Req : PHP5, Simple XML , Google map api key for your site

$mapObj = new googleMapGeocoder();
$address = "Taj mahal ,Agra, India";
$latlonArr = $mapObj->geocodeAddress($address);

<script src=";v=2&amp;key=your gmap api key here"
        <title> Google Map </title>
        <div id="map" style="width: 500px;height:400px"></div>
// plot the map with default marker icon
echo $mapObj->plotgoogleMap($latlonArr);