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:
-
require_once 'phoogle.php';
-
$map = new PhoogleMap();
-
$map->setAPIKey("<strong><em>YOUR API KEY GOES HERE</em></strong>");
-
printGoogleJS();
-
-
$map->addAddress('208 Dingler Ave, Mooresville, NC 28115');
-
$map->addAddress('210 Doster Ave, Mooresville, NC 28115');
-
$map->addAddress('300 Dingler Ave, Mooresville, NC 28115');
-
$map->showMap();
You may Leave a comment or Subscribe to Comments RSS or Trackback this entry.
1 comment so far
Leave a comment
Please be polite and on topic. Your e-mail will never be published.
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 :)