I've had this in my book mark for a while and thought was handy. Essentially the code shows how with a database of address how you can usea call to a google service to return a xml file which you then iterate through to extract what you need.
Geocoding Addresses with PHP/MySQL