Dynamic item page with Google maps

Sorry for reviving an old thread, but i am facing the exact same issue as you @alexwforbes. Did you manage to find a solution for how to extract the address from your #text26 element?

Hi Ahmd - Thank you so much for providing this code example. May I ask what the format of the FullAddress should be? Here is what I am passing.

let fullAddress = $w( ‘#Address1’ )+ ’ ’ +$w( ‘#Address2’ )+ ', ’ +$w( ‘#City’ )+ ', ’ +$w( ‘#State’ )+ ’ ’ +$w( ‘#Zip’ );
console.log(fullAddress);

geocodeAddress(fullAddress).then((json) => { 

// fills in remainder of address from query

for ( var i in json.results[ 0 ].address_components){

I also am receiving a debug error for Cannot read property ‘address_components’ of undefined.

Is this because fullAddress is not in the correct format?
Thank you!