Address autocomplete in separate fields

I am using the Google autocomplete feature in an address form. It works beautifully, but I need the address line 1, city, State and zip to populate in separate fields. Can this be done? What I ultimately need is these parts separated so they can be saved as separate data fields because that’s how the database is set up.