Google places autocomplete - get latitude/longitude for database

I feel like im going crazy now. i swear I had a similar setup in earlier and it was just giving me errors. Yes can confirm it is now populating as I expect it to! Thank you very much for all your help on this. Much appreciated.