Get address lat and long with google api

This will give you a nice array of all the data.

 $request = drupal_http_request('https://maps.googleapis.com/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA');
 $out = drupal_json_decode($request->data);