地理編碼結果包含地點的地理資訊。
| JSON 表示法 | 
|---|
| { "place": string, "placeId": string, "location": { object ( | 
| 欄位 | |
|---|---|
| place | 
 這個結果的完全符合規定的地點 ID,格式為「//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 | 
 地址元件的完整文字說明或名稱。舉例來說,澳洲地址元件的長名稱可能為「澳洲」。 | 
| shortText | 
 地址元件的縮寫文字名稱 (如有)。舉例來說,澳洲地址元件的簡稱可能為「AU」。 | 
| types[] | 
 這個陣列表示地址元件的類型。 詳情請參閱 https://developers.google.com/maps/documentation/geocoding/requests-geocoding#Types。 | 
| languageCode | 
 以 CLDR 標記表示的語言,用於格式化這個元件。 |