PostalAddress
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
JSON 表示法 |
{
"addressCountry": string,
"addressLocality": string,
"addressRegion": string,
"postalCode": string,
"streetAddress": string
} |
字段 |
addressCountry |
string
由 ISO 3166-1 alpha-2 国家/地区代码表示的国家/地区,例如“美国”(必填)
|
addressLocality |
string
市行政区(例如“秦淮区”)。(必填)
|
addressRegion |
string
地区(例如“南京市”)。只有在地区通常是地址的一部分的国家/地区才需要填写此字段。(可选)
|
postalCode |
string
邮政编码,例如“210006”。(必填)
|
streetAddress |
string
街道地址(例如“中山南路 1 号”)。(必填)
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\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) |"]]