You can geocode addresses with the Google Geocoding API .
Depending on what you want, you may get an XML or JSON response by calling
http://maps.google.com/maps/api/geocode/json?address=ADRESS HERE
If all address spaces should be replaced with + . The data you want is located in geometry->location .
source share