ジオコードの結果には、場所に関する地理情報が含まれます。
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 |
1 行で表した住所。 |
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。 |
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 表記)。 |
LocalizedText
特定の言語のテキストのローカライズされたバリエーション。
JSON 表現 |
---|
{ "text": string, "languageCode": string } |
フィールド | |
---|---|
text |
以下の |
languageCode |
テキストの BCP-47 言語コード(「en-US」や「sr-Latn」など)。 詳しくは、http://www.unicode.org/reports/tr35/#Unicode_locale_identifier をご覧ください。 |