Showing Google Maps in website

Phoogle Maps (pronounced like Foogle Maps) is a PHP class that integrates itself with the Google Maps API and with the Google Geocoding API 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.

Go to http://code.google.com/apis/maps/ and register for api key with your gmail id and website, where the map will be displayed (the api works for the registered website’s only, any key works on localhost)

Get the a long alphanumeric Google Maps API key.

Use the zipped (phoogle_map.zip) google map example and edit as per requirement, must replace the key in all locations of files.

Recently the previous version has error saying “Fatal error: Cannot use string offset as an array in ….”
This error has also been fixed in the example.

Downlad the zipped file with Demo example.

Be Sociable, Share!
You can leave a response, or trackback from your own site.

Leave a Reply

CommentLuv badge
 

Powered by WordPress