To create a custom field of type Address (Beta) on an object, use Metadata
API.
This feature is a Beta Service. Customer may opt to try such Beta Service in its
sole discretion. Any use of the Beta Service is subject to the applicable Beta
Services Terms provided at Agreements and Terms.
Address as a Custom Field (Beta)
has been enabled for a limited number of customers in Spring '22. Before
creating a custom field of type Address, review the limitations.
This example creates a custom object of type Address on the Account
object.