PostalAddress
Stay organized with collections
Save and categorize content based on your preferences.
Address of a customer or a business.
JSON representation |
{
"addressCountry": string,
"addressLocality": string,
"addressRegion": string,
"postalCode": string,
"streetAddress": string
} |
Fields |
addressCountry |
string
The country, specified using its ISO 3166-1 alpha-2 country code, e.g. "US" (required)
|
addressLocality |
string
The locality, e.g. "Mountain View". (required)
|
addressRegion |
string
The region, e.g. "CA". This field is only required in countries where region is commonly a part of the address. (optional)
|
postalCode |
string
The postal code, e.g. "94043". (required)
|
streetAddress |
string
The street address, e.g. "1600 Amphitheatre Pkwy". (required)
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-17 UTC.
[null,null,["Last updated 2024-10-17 UTC."],[[["\u003cp\u003eThe PostalAddress schema represents the address of a customer or business using JSON format.\u003c/p\u003e\n"],["\u003cp\u003eIt includes fields for country, locality, region, postal code, and street address, with country, locality, postal code, and street address being required.\u003c/p\u003e\n"],["\u003cp\u003eThe country should be specified using its ISO 3166-1 alpha-2 country code, while the region field is optional and only required for countries where it's commonly part of an address.\u003c/p\u003e\n"]]],[],null,["# PostalAddress\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nAddress of a customer or a business.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"addressCountry\": string, \"addressLocality\": string, \"addressRegion\": string, \"postalCode\": string, \"streetAddress\": string } ``` |\n\n| Fields ||\n|---------------------|-------------------------------------------------------------------------------------------------------------------------------------|\n| `address``Country` | `string` The country, specified using its ISO 3166-1 alpha-2 country code, e.g. \"US\" (required) |\n| `address``Locality` | `string` The locality, e.g. \"Mountain View\". (required) |\n| `address``Region` | `string` The region, e.g. \"CA\". This field is only required in countries where region is commonly a part of the address. (optional) |\n| `postal``Code` | `string` The postal code, e.g. \"94043\". (required) |\n| `street``Address` | `string` The street address, e.g. \"1600 Amphitheatre Pkwy\". (required) |"]]