Address

地點的地址。

JSON 表示法
{
  "formattedAddress": {
    object (FormattedAddress)
  },
  "addressComponents": [
    {
      object (AddressComponent)
    }
  ]
}
欄位
formattedAddress

object (FormattedAddress)

這個地點的完整清楚易懂地址。

addressComponents[]

object (AddressComponent)

地址元件清單。

FormattedAddress

清楚易懂的完整地址,適用於包含此訊息的實體。

JSON 表示法
{
  "lines": [
    string
  ]
}
欄位
lines[]

string

描述地址的文字行。至少要有一行。

AddressComponent

地址元件,用來描述地址的一部分。

JSON 表示法
{
  "componentText": string,
  "componentTextShortForm": string,
  "types": [
    string
  ]
}
欄位
componentText

string

這個元件名稱,用來說明地址的一部分。例如「加州」、「Amphitheatre Parkway」。

componentTextShortForm

string

元件文字的簡短格式。例如「CA」代表「加州」,「US」代表「美國」。

types[]

string

這個元件類型,用來說明地址的一部分。如需支援的類型的清單,請參閱 https://developers.google.com/places/web-service/supported_types#table2