RSS

Phoogle – a quick and easy PHP Google Maps API app

This entry was posted on Jun 06 2008

In my recent search for the easiest, cleanest, php API plugins, I found Phoogle. It's a PHP / Google Maps class that is very cleanly written, and absolutely painless to implement. Though you will still need to apply for your free Google Developer API Key, it's about as quick and easy as it gets for such a powerful functionality. Also, if you use CakePHP, you can install a Phoogle Helper! Here's the basic code to make it work:

PHP:
  1. require_once 'phoogle.php';
  2. $map = new PhoogleMap();
  3. $map->setAPIKey("<strong><em>YOUR API KEY GOES HERE</em></strong>");
  4. printGoogleJS();
  5.  
  6. $map->addAddress('208 Dingler Ave, Mooresville, NC 28115');
  7. $map->addAddress('210 Doster Ave, Mooresville, NC 28115');
  8. $map->addAddress('300 Dingler Ave, Mooresville, NC 28115');
  9. $map->showMap();


2 Responses to “Phoogle – a quick and easy PHP Google Maps API app”

  1. Thanks
    This was very useful to me I am not much of a php developer and i needed to implement Google Maps on an example website :)


  1. 1 Trackback(s)

  2. Recent Links Tagged With "phoogle" - JabberTags

Post a Comment