PostalAddress
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
JSON 表示法 |
{
"addressCountry": string,
"addressLocality": string,
"addressRegion": string,
"postalCode": string,
"streetAddress": string
} |
欄位 |
addressCountry |
string
國家/地區,使用 ISO 3166-1 alpha-2 國家/地區代碼指定,例如「US」(必要)
|
addressLocality |
string
縣市,例如「台北市」。(必填)
|
addressRegion |
string
區域,例如「CA」。只有在地址通常包含區域名稱的國家/地區,才需要使用這個欄位。(選填)
|
postalCode |
string
郵遞區號,例如「94043」。(必填)
|
streetAddress |
string
街道地址,例如「八德路二段 1 號」。(必填)
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間: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) |"]]