Using my Google Maps API key I can geocode almost anything*. And with Zend Framework, it’s f’n damn simple! Zend_Loader::loadClass(‘Zend_Rest_Client’); $rest = new Zend_Rest_Client(‘http://maps.google.com/maps/geo’); //?q=1600+Amphitheatre+Parkway,+Mountain+View,+CA&output=json&oe=utf8&sensor=true_or_false&key=your_api_key $rest->key(‘YOUR_API_KEY’); $rest->q(’1600 Amphitheatre Parkway, Mountain View, CA’); $rest->output(‘xml’); $rest->oe(‘utf8′); $result = $rest->get(); // the whole $result is a SimpleXML object print_r((string)$result->Response->Placemark->Point->coordinates); And that’s it. Save the results someplace useful so [...]
Posts Tagged ‘Google’
Google I/O 2008
June 11th, 2008
No Comments
I had the pleasure of attending Google I/O in San Francisco this year. I’m only getting to posting about it now because work has been far too insane for me to even stop and think about all the glorious things I heard about during the conference. In fact, I still find it hard to come [...]

