When working with a multi-lingual site, it's often helpful to know the country code of a given Address.
If the Address was completed automatically using the Autocomplete lookup, the raw value will contain a detailed breakdown of the Google data. The country code is contained within this data, however, it is buried pretty deeply within the nested array.
Currently, this is what is required to access the country code...
When working with a multi-lingual site, it's often helpful to know the country code of a given Address.
If the Address was completed automatically using the Autocomplete lookup, the
raw
value will contain a detailed breakdown of the Google data. The country code is contained within this data, however, it is buried pretty deeply within the nested array.Currently, this is what is required to access the country code...
We could potentially add a new method to surface the country code more easily and safely....
This shouldn't be too tough, will try to slot it in with some other priorities! 👍