I don't yet follow you but I am hanging on with everything I have.
If both "address_components' AND'types' are keys within the same hash, then what is the value pair for 'address_components'? I'm having trouble wrapping my head around that... Indeed, I thought types was a substructure within 'address_components'...