Your Ad Here

Phoogle - a quick and easy PHP Google Maps API app

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();

1 comment so far

  1. Marcel B June 23, 2008 12:29 pm

    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 :)

Leave a comment

Please be polite and on topic. Your e-mail will never be published.