Address autocomplete fields

I want to implement google address autocomplete in my form. I have fields:

  • {location} (search box)
  • {street}
  • {street2}
  • {city}
  • {state}
  • {zip_code}
    what will be code? please, help

Where do you insert the google code?

thats my question. i want to know where i have to insert and how to modify
Thank you for your respond

Does someone has a solution or example ?
Does the autocomple method works with a Webservice, ref this doc : Tutorial: Autocomplete | Tutoriais Scriptcase