science このプロダクトまたは機能は、pre-GA(一般提供前)のプレビュー版です。一般提供前のプロダクトと機能では、サポートが制限されることがあります。また、一般提供前のプロダクトや機能の変更は、他の一般提供前のバージョンと互換性がない場合があります。pre-GA のサービスには、
Google Maps Platform サービス固有の規約が適用されます。詳細については、
リリース ステージの説明をご覧ください。
登録してプレイス分析情報をお試しください。
クエリ結果を可視化する
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
BigQuery データから分析情報を得るには、分析ツールとビジネス インテリジェンス ツールが不可欠です。BigQuery は、Google とサードパーティの複数のデータ可視化ツールをサポートしています。これらのツールを使用して、次のようなプレイス分析情報のデータに対するクエリの結果を分析できます。
- Looker Studio
- BigQuery Geo Viz
- Colab ノートブック
- Google Earth Engine
次の例は、結果を可視化する方法を示しています。
- Looker Studio: データを可視化し、ダッシュボードやレポートを作成して利用できるプラットフォーム。
- BigQuery Geo Viz。Google Maps API を使用して BigQuery で地理空間データを可視化するツール。
他のツールを使用してデータを可視化する方法については、BigQuery のドキュメントをご覧ください。
データをクエリして可視化する
次の可視化の例では、次のクエリを使用して、ニューヨーク市で車椅子で入店できるレストランの数を生成します。このクエリは、各ポイントのサイズが 0.005 度の地理的なポイントあたりのレストラン数の表を返します。
GEOGRAPHY
ポイントに対して GROUP BY
オペレーションを実行できないため、このクエリでは BigQuery の ST_ASTEXT
関数を使用して、各ポイントをポイントの STRING
WKT 表現に変換し、その値を geo_txt
列に書き込みます。次に、geo_txt
を使用して GROUP BY
を実行します。
SELECT
geo_txt, -- STRING WKT geometry value.
ST_GEOGFROMTEXT(geo_txt) AS geo, -- Convert STRING to GEOGRAPHY value.
count
FROM (
-- Create STRING WKT representation of each GEOGRAPHY point to
-- GROUP BY the STRING value.
SELECT WITH AGGREGATION_THRESHOLD
ST_ASTEXT(ST_SNAPTOGRID(point, 0.005)) AS geo_txt,
COUNT(*) AS count
FROM
`places_insights___us___sample.places_sample`
WHERE
'restaurant' IN UNNEST(types)
AND wheelchair_accessible_entrance = true
GROUP BY
geo_txt
)
次の図は、このクエリの出力例を示しています。count
には、各ポイントのレストランの数が含まれています。

Looker Studio でデータを可視化する
次の図は、Looker Studio でこのデータがヒートマップとして表示されている様子を示しています。ヒートマップは、密度が低い(緑)から高い(赤)までを示しています。

Looker Studio にデータをインポートする
Looker Studio にデータをインポートするには:
上記のクエリをデータをクエリして可視化するで実行します。
BigQuery の結果で、[次で開く] -> [Looker Studio] をクリックします。結果は Looker Studio に自動的にインポートされます。
Looker Studio はデフォルトのレポートページを作成し、タイトル、表、結果の棒グラフで初期化します。

ページ上のすべてを選択して削除します。
レポートにヒートマップを追加するには、[挿入 -> ヒートマップ] をクリックします。
[グラフの種類 -> 設定] で、次の図に示すようにフィールドを構成します。

ヒートマップは上記のように表示されます。必要に応じて、[グラフの種類 -> スタイル] を選択して、地図の外観をさらに構成できます。
BigQuery Geo Viz を使用してデータを可視化する
次の画像は、このデータが BigQuery Geo Viz で塗りつぶし地図として表示されている様子を示しています。塗りつぶし地図には、ポイント セルごとのレストランの密度が表示されます。ポイントが大きいほど密度が高くなります。

BigQuery Geo Viz にデータをインポートする
データを BigQuery Geo Viz にインポートするには:
上記のクエリをデータをクエリして可視化するで実行します。
BigQuery の結果で、[Open in -> GeoViz] をクリックします。
[クエリ] ステップが表示されます。
[実行] ボタンを選択して、クエリを実行します。地図上にポイントが自動的に表示されます。
[データ] を選択してデータを表示します。
[データ] セクションで、[スタイルを追加] ボタンをクリックします。
[fillColor] を選択し、スライダーを使用してデータドリブン スタイリングを有効にします。
残りのフィールドを次のように設定します。

[スタイルを適用] をクリックして、地図にスタイルを適用します。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-17 UTC。
[null,null,["最終更新日 2025-07-17 UTC。"],[],[],null,["Analysis and [business intelligence\ntools](https://cloud.google.com/bigquery/docs/data-analysis-tools-intro) are\ncrucial to helping you discover insights from your BigQuery data. BigQuery\nsupports several Google and third-party [data visualization\ntools](https://cloud.google.com/bigquery/docs/geospatial-visualize) that you can\nuse to analyze the results of your queries on Places Insights data, including:\n\n- Looker Studio\n- BigQuery Geo Viz\n- Colab notebooks\n- Google Earth Engine\n\nThe example below describes how to visualize your results in:\n\n- Looker Studio, a platform that lets you build and consume data visualizations, dashboards, and reports.\n- BigQuery Geo Viz, a geospatial data visualization tool in BigQuery using Google Maps APIs.\n\nSee the [BigQuery\ndocumentation](https://cloud.google.com/bigquery/docs/geospatial-visualize) for\nmore information on visualizing your data using other tools.\n\nQuery data to visualize\n\nThe visualization examples below use the following query to generate a count of\nrestaurants in New York City with a wheelchair accessible entrance.\nThis query returns a table of restaurant\ncounts per geographical *point* where the size of each point is 0.005 degrees.\n\nBecause you cannot perform a `GROUP BY` operation on a `GEOGRAPHY` point, this\nquery uses the BigQuery\n[`ST_ASTEXT`](https://cloud.google.com/bigquery/docs/reference/standard-sql/geography_functions#st_astext)\nfunction to convert each point into the `STRING`\n[WKT](https://en.wikipedia.org/wiki/Well-known_text) representation of the\npoint, and writes that value to the `geo_txt` column. It then performs the\n`GROUP BY` using `geo_txt`. \n\n```googlesql\nSELECT\n geo_txt, -- STRING WKT geometry value.\n ST_GEOGFROMTEXT(geo_txt) AS geo, -- Convert STRING to GEOGRAPHY value.\n count\nFROM (\n -- Create STRING WKT representation of each GEOGRAPHY point to\n -- GROUP BY the STRING value.\n SELECT WITH AGGREGATION_THRESHOLD\n ST_ASTEXT(ST_SNAPTOGRID(point, 0.005)) AS geo_txt,\n COUNT(*) AS count\n FROM\n `places_insights___us___sample.places_sample`\n WHERE\n 'restaurant' IN UNNEST(types)\n AND wheelchair_accessible_entrance = true\n GROUP BY\n geo_txt\n)\n```\n\nThe following image shows an example output to this query where `count`\ncontains the number of restaurants for each point:\n\nVisualize data using Looker Studio\n\nThe following images show this data displayed in Looker Studio as a heatmap. The\nheatmap shows density from low (green) to high (red).\n\nImport your data into Looker Studio\n\nTo import your data into Looker Studio:\n\n1. Run the query above in [Query data to visualize](#query_data_to_visualize).\n\n2. In the BigQuery results, click **Open in -\\\u003e Looker Studio**. Your results\n are automatically imported into Looker Studio.\n\n3. Looker Studio creates a default report page and initializes it with a title,\n table, and bar graph of the results.\n\n4. Select everything on the page and delete it.\n\n5. Click **Insert -\\\u003e Heatmap** to add a heatmap to your report.\n\n6. Under **Chart types -\\\u003e Setup** configure the fields as shown below::\n\n7. The heatmap appears as above. You can optionally select **Chart types -\\\u003e\n Styles** to further configure the appearance of the map.\n\nVisualize data using BigQuery Geo Viz\n\nThe following images show this data displayed in BigQuery Geo Viz as a filled\nmap. The filled map shows the restaurant density by point cell, where the larger\nthe point corresponds to the higher density.\n\nImport your data into BigQuery Geo Viz\n\nTo import your data into BigQuery Geo Viz:\n\n1. Run the query above in [Query data to visualize](#query_data_to_visualize).\n\n2. In the BigQuery results, click **Open in -\\\u003e GeoViz**.\n\n3. The display opens to the **Query** step.\n\n4. Select the **Run** button to run the query. The map automatically shows\n the points on the map.\n\n5. Select **Data** to view the data.\n\n6. In the **Data** section, click the **Add styles** button.\n\n7. Select **fillColor** and then use the slider to enable **Data-driven**\n styling.\n\n8. Set the remaining fields as shown below:\n\n9. Click **Apply Style** to apply the styles to the map."]]