Method: geocode.places.geocodePlace
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
このメソッドは、プレイス ID を使用してジオコーディングの検索を行います。
HTTP リクエスト
GET https://geocode.googleapis.com/v4beta/geocode/{place=places/*}
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
place |
string
必須。ジオコーディングする場所の識別子(places/{place} の形式)。
|
クエリ パラメータ
パラメータ |
languageCode |
string
省略可。結果を返す言語。
|
regionCode |
string
省略可。地域コード。ccTLD(「トップレベル ドメイン」)の 2 文字の値として指定される地域コード。このパラメータは、適用される法律に基づいて結果に影響します。
|
リクエストの本文
リクエストの本文は空にする必要があります。
レスポンスの本文
成功した場合、レスポンスの本文には GeocodeResult
のインスタンスが含まれます。
認可スコープ
以下のいずれかの OAuth スコープが必要です。
https://www.googleapis.com/auth/cloud-platform
https://www.googleapis.com/auth/maps-platform.geocode
https://www.googleapis.com/auth/maps-platform.geocode.place
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-08-31 UTC。
[null,null,["最終更新日 2025-08-31 UTC。"],[],[],null,["# Method: geocode.places.geocodePlace\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n\nThis method performs a geocode lookup using a place ID.\n\n### HTTP request\n\n`GET https://geocode.googleapis.com/v4beta/geocode/{place=places/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|---------|---------------------------------------------------------------------------------|\n| `place` | `string` Required. Place identifier to geocode in the format of places/{place}. |\n\n### Query parameters\n\n| Parameters ||\n|----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `languageCode` | `string` Optional. Language in which the results should be returned. |\n| `regionCode` | `string` Optional. Region code. The region code, specified as a ccTLD (\"top-level domain\") two-character value. The parameter affects results based on applicable law. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains an instance of [GeocodeResult](/maps/documentation/geocoding/reference/rest/v4beta/GeocodeResult).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n- `\n https://www.googleapis.com/auth/maps-platform.geocode`\n- `\n https://www.googleapis.com/auth/maps-platform.geocode.place`"]]