GeocodeResult

ジオコードの結果には、場所に関する地理情報が含まれます。

JSON 表現
{
  "place": string,
  "placeId": string,
  "location": {
    object (LatLng)
  },
  "granularity": enum (Granularity),
  "viewport": {
    object (Viewport)
  },
  "bounds": {
    object (Viewport)
  },
  "formattedAddress": string,
  "postalAddress": {
    object (PostalAddress)
  },
  "addressComponents": [
    {
      object (AddressComponent)
    }
  ],
  "postalCodeLocalities": [
    {
      object (LocalizedText)
    }
  ],
  "types": [
    string
  ],
  "plusCode": {
    object (PlusCode)
  }
}
フィールド
place

string

この結果の完全修飾された場所の ID。形式は「//places.googleapis.com/places/{placeID}」です。詳しくは、https://developers.google.com/maps/documentation/places/web-service/place-id をご覧ください。

placeId

string

この結果のプレイス ID。

location

object (LatLng)

この住所の緯度と経度。

granularity

enum (Granularity)

位置情報の粒度。

viewport

object (Viewport)

ジオコーディングの結果を表示するのに適したビューポート。

bounds

object (Viewport)

住所の境界ボックス。

formattedAddress

string

1 行で表した住所。

postalAddress

object (PostalAddress)

郵便住所形式の住所。

addressComponents[]

object (AddressComponent)

地域レベルごとに繰り返されるコンポーネント。

postalCodeLocalities[]

object (LocalizedText)

郵便番号に含まれる地域区分の完全なリスト。

結果のタイプが「postal_code」の場合にのみ入力されます。

types[]

string

この結果のタイプタグのセット。例: 「political」と「administrative_area」。

使用可能な値の一覧については、https://developers.google.com/maps/documentation/places/web-service/place-types の表 A と表 B をご覧ください。

plusCode

object (PlusCode)

このジオコード内の場所の Plus Code。

AddressComponent

フォーマットされた住所を構成する構造化コンポーネント(この情報が利用可能な場合)。

JSON 表現
{
  "longText": string,
  "shortText": string,
  "types": [
    string
  ],
  "languageCode": string
}
フィールド
longText

string

住所コンポーネントの完全な説明または名前。たとえば、オーストラリアの国名の住所コンポーネントの長い名前は「Australia」です。

shortText

string

住所コンポーネントの略称(略称がある場合)。たとえば、オーストラリアの国の国コードは「AU」です。

types[]

string

住所コンポーネントのタイプを示す配列。

詳しくは、https://developers.google.com/maps/documentation/geocoding/requests-geocoding#Types をご覧ください。

languageCode

string

このコンポーネントの書式設定に使用される言語(CLDR 表記)。

LocalizedText

特定の言語のテキストのローカライズされたバリエーション。

JSON 表現
{
  "text": string,
  "languageCode": string
}
フィールド
text

string

以下の languageCode に対応する言語のローカライズされた文字列。

languageCode

string

テキストの BCP-47 言語コード(「en-US」や「sr-Latn」など)。

詳しくは、http://www.unicode.org/reports/tr35/#Unicode_locale_identifier をご覧ください。