Zend Rest Client & Google Maps Geocoder API

Here is some quick example how to use zend framework rest client and google maps geocoder API together.

1
2
3
4
5
$client = new Zend_Rest_Client('http://maps.googleapis.com/maps/api/geocode/xml');
$client->address('Cesta Andreja Bitenca 68, 1000 Ljubljana');
$client->sensor('false');
$res = $client->get();
print_r($res);

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.