« Google Ups Prices for Less Relevant Ads | Main | New Google search features »

Phoogle Maps : Google Maps with PHP

Phoogle Maps (pronounced like Foogle Maps) is a PHP class, written by Justin Johnson of system7designs, that integrates itself with the Google Maps API and with the geocoder.us database to make an easy to use interface to display Google Maps on your site. With about 5 lines of PHP code you can display a customized Google Map on your website. More features as added as I develop them so be sure to check back often. Please note that you will need a free Google Maps API Key to use Phoogle Maps

There is also sample usage like this example

//create an instance of the mapping class $myPhoogleMap = new googleMap; //variables to pass to the showMap() method $myAddress = "208 Dingler Ave Mooresville NC 28115"; //address can also be info pulled from a db or $_GET, $_POST $array = false; //do you want to print out a debug array of geocode values, for development you may want to set to true //this is the size of the map $mWidth = 500; $mHeight = 500; //this line is what actually displays the map and all that good junk... $myPhoogleMap->showMap($myAddress, $array, $mWidth, $mHeight);

There is also another method showMultiple() that allow to show more anchors.

Download Phoogle Maps

Bookmark this article at these sites
Comments
1

I've made a modified version which allows you to cutomize the markers in the map. you can download it here:
http://www.barattalo.it

Post a comment





(Email will remain hidden)





Please enter the security code you see here




Related entries
Email to a friend
Email this article to:


Your email address:


Message (optional):