Here is a php script that gets the Latitude and Longitude of any address using the google maps API.
The original script comes from Ken. I just made some minor adjustments to it and made it dynamic.
This basically parses a JavaScript blob returned from the API and extracts the lat and long values.
If you’re feeling hackish, another neat trick found by qmchenry exposes Google Map’s JavaScript object and fires a series of functions to get the the lat and long values of the currently centered location in the browser. Just paste this JS into your address bar after you have searched for your address on google maps.
javascript: void prompt("", gApplication.getMap().getCenter());