1 file demo of the Google Geocode API, the more info you provide the more accurate and precise data you get back. The JavaScript for this example can be found inside the *.html page.