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

用于描述地址部分的此组成部分的名称。例如,“California”(加利福尼亚州)、“Amphitheatre Parkway”(露天剧场大道)。

componentTextShortForm

string

组件文本的简短形式。例如,“CA”表示“加利福尼亚州”,而“US”表示“美国”。

types[]

string

描述部分地址的组件类型。如需查看支持的类型列表,请参阅 https://developers.google.com/places/web-service/supported_types#table2