How to get full address detail from Gmap

image

The context I need the details of the address to send it to our API.
I was wondering: How can I get the full address in JSON and store it in a hidden field?

Thank you in advance.