地理编码结果包含有关某个地点的地理信息。
| JSON 表示法 | 
|---|
| { "place": string, "placeId": string, "location": { object ( | 
| 字段 | |
|---|---|
| place | 
 相应结果的完全限定地点标识符。格式为“//places.googleapis.com/places/{placeID}”。如需了解详情,请访问 https://developers.google.com/maps/documentation/places/web-service/place-id。 | 
| placeId | 
 相应结果的地点 ID。 | 
| location | 
 相应地址的纬度和经度。 | 
| granularity | 
 位置信息的粒度。 | 
| viewport | 
 适合显示地理编码结果的视口。 | 
| bounds | 
 地址的边界框。 | 
| formattedAddress | 
 单行格式的地址。 | 
| postalAddress | 
 邮政地址格式的地址。 | 
| addressComponents[] | 
 每个地理位置级别的重复组件。 | 
| postalCodeLocalities[] | 
 邮政编码中包含的市行政区的完整列表。 仅当结果类型为“postal_code”时,系统才会填充此字段。 | 
| types[] | 
 相应结果的一组类型标记。例如,“political”和“administrative_area”。 如需查看可能值的完整列表,请参阅 https://developers.google.com/maps/documentation/places/web-service/place-types 中的表 A 和表 B。 | 
| plusCode | 
 相应地理编码中位置的 Plus Code。 | 
GeocodeResult.AddressComponent
构成格式化地址的结构化组件(如果此信息可用)。
| JSON 表示法 | 
|---|
| { "longText": string, "shortText": string, "types": [ string ], "languageCode": string } | 
| 字段 | |
|---|---|
| longText | 
 地址组成部分的完整文本说明或名称。例如,澳大利亚的地址组成部分可能包含长名称“Australia”。 | 
| shortText | 
 地址组成部分的缩写文本名称(如果有)。例如,澳大利亚的地址组成部分可能具有“AU”的短名称。 | 
| types[] | 
 一个数组,用于指示地址组成部分的类型。 如需了解详情,请参阅 https://developers.google.com/maps/documentation/geocoding/requests-geocoding#Types。 | 
| languageCode | 
 用于设置相应组件格式的语言(采用 CLDR 表示法)。 |