设置地点数据分析
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
在预览版中,Places Insights 会在 BigQuery 数据净室中为目标国家/地区提供特定于城市的数据。数据净室提供安全增强型环境,在该环境中,多方可以共享、联接和分析其数据资产,而无需移动或呈现底层数据。
在针对数据净室中的数据编写 SQL 查询之前,您必须先注册,才能获得 Places Insights 产品的使用权限。完成账号启用流程后,您将能够订阅目标国家/地区的数据净室。
前提条件
如需访问净室中的 Places Insights 数据,您必须:
注册以测试地点洞察。
拥有 Google Cloud 账号。
如果您没有账号,请点击开始使用按钮,即可体验 Cloud 控制台中面向新用户的交互式设置:
开始使用
启用 BigQuery API。如需了解如何启用 BigQuery 以及有关使用 BigQuery 的教程,请参阅使用 Google Cloud 控制台查询公共数据集。
启用 Analytics Hub API。
请确保您的账号具有 Analytics Hub Subscriber (roles/analyticshub.subscriber
) 和 Analytics Hub Subscription Owner (roles/analyticshub.subscriptionOwner
) 角色,以便在数据净室中执行订阅者任务。
确保您的账号具有 BigQuery User (roles/bigquery.user
) 角色,以便创建数据集。
如需了解详情,请参阅其他订阅者权限。
订阅数据净室
下表列出了可获取地点洞见数据的城市和国家/地区。每个城市和国家/地区都有自己的数据净室,您必须单独订阅。
如需订阅净室,请执行以下操作:
从下表中选择您感兴趣的城市的订阅链接。
Google Cloud 控制台中会打开一个对话框,其中显示相应国家/地区。例如,对于美国纽约市的净化室:

选择对话框中的订阅按钮。
完成后,表订阅会显示在 Google Cloud 控制台的 BigQuery 探索器面板中。在 SQL 查询中,使用下表中显示的表名称来访问数据。

可用的净室
下表列出了支持的城市和国家/地区:
国家/地区,城市 |
订阅链接 |
表名称 |
澳大利亚悉尼 | AU |
places_insights___au___sample.places_sample
|
巴西圣保罗 | BR |
places_insights___br___sample.places_sample
|
加拿大多伦多 | CA |
places_insights___ca___sample.places_sample
|
法国巴黎 | FR |
places_insights___fr___sample.places_sample
|
德国柏林 | DE |
places_insights___de___sample.places_sample
|
英国伦敦 | GB |
places_insights___gb___sample.places_sample
|
印度孟买 | IN |
places_insights___in___sample.places_sample
|
印度尼西亚雅加达 | ID |
places_insights___id___sample.places_sample
|
意大利罗马 | IT |
places_insights___it___sample.places_sample
|
日本东京 | JP |
places_insights___jp___sample.places_sample
|
墨西哥的墨西哥城 | MX |
places_insights___mx___sample.places_sample
|
西班牙马德里 | ES |
places_insights___es___sample.places_sample
|
瑞士苏黎世 | CH |
places_insights___ch___sample.places_sample
|
美国纽约市 | US |
places_insights___us___sample.places_sample
places_insights___us___sample.brands
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-22。
[null,null,["最后更新时间 (UTC):2025-07-22。"],[],[],null,["In the Preview release, Places Insights provides city-specific data in BigQuery\n[data clean rooms](https://cloud.google.com/bigquery/docs/data-clean-rooms) for\nthe target countries. Data clean rooms provide a security-enhanced environment\nin which multiple parties can share, join, and analyze their data assets without\nmoving or revealing the underlying data.\n\nBefore you can write SQL queries against the data in a clean room, you must\nfirst [sign up](https://docs.google.com/forms/d/e/1FAIpQLSetyVSIJc2U4C8rn7Z2olWhK9MEbD_YPadqHuPO3SE-yL21yg/viewform)\nto get access to the Places Insights product. Once your account\nhas been onboarded, you will be able to **subscribe** to the clean room for your\ntarget country.\n\nPrerequisites\n\nTo access the Places Insights data in a clean room, you must:\n\n1. [Sign up](https://docs.google.com/forms/d/e/1FAIpQLSetyVSIJc2U4C8rn7Z2olWhK9MEbD_YPadqHuPO3SE-yL21yg/viewform)\n to test Places Insights.\n\n2. Have a [Google Cloud](https://cloud.google.com/) account.\n\n If you don't have an account, click the **Get Started** button that links to\n an interactive setup experience in the Cloud console for new\n users:\n\n [Get Started](https://console.cloud.google.com/google/maps-apis/start?utm_source=Docs_GS_Button&ref=https://developers.google.com/maps/&utm_content=Docs_Central)\n3. Enable the BigQuery API. For instructions on enabling BigQuery and for a\n tutorial on using BigQuery, see [Query a public dataset with the Google Cloud console](https://cloud.google.com/bigquery/docs/quickstarts/query-public-dataset-console).\n\n4. Enable the [Analytics Hub API](https://console.cloud.google.com/apis/api/analyticshub.googleapis.com/metrics).\n\n5. Ensure that your account has the [Analytics Hub Subscriber](https://cloud.google.com/bigquery/docs/analytics-hub-grant-roles#ah-subscriber-role)\n (`roles/analyticshub.subscriber`) and [Analytics Hub Subscription\n Owner](https://cloud.google.com/bigquery/docs/analytics-hub-grant-roles#ah-subscription-owner-role)\n (`roles/analyticshub.subscriptionOwner`) roles to perform subscriber tasks\n on the data clean rooms.\n\n6. Ensure that your account has the [BigQuery User](https://cloud.google.com/bigquery/docs/access-control#bigquery.user)\n (`roles/bigquery.user`) role to create datasets.\n\n For more information, see [Additional subscriber\n permissions](https://cloud.google.com/bigquery/docs/data-clean-rooms#additional_subscriber_permissions).\n\nSubscribe to a data clean room\n\nPlaces Insights data is available for the cities and countries listed in the\n[table below](#available-clean-rooms). Each city and country has its own data\nclean room that you must subscribe to individually.\n\nTo subscribe to a clean room:\n\n1. Select the subscribe link for the city of interest from the [table\n below](#available-clean-rooms).\n\n2. A dialog opens for that country in the Google Cloud console. For example\n for the New York City, United States (US) clean room:\n\n3. Select the **Subscribe** button in the dialog.\n\n4. When complete, the table subscription appears in the BigQuery **Explorer**\n panel in the Google Cloud console. In your SQL queries, use the table name\n shown below to access the data.\n\nAvailable clean rooms\n\nThe following table lists the supported cities and countries:\n\n| City, Country | Subscribe link | Table names |\n|------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------|\n| Sydney, Australia | [AU](https://console.cloud.google.com/bigquery;cameo=analyticshub;pageName=exchange-detail;pageResource=maps-platform-analytics-hub.us.places_insights_AU_sample) | `places_insights___au___sample.places_sample` |\n| Sao Paulo, Brazil | [BR](https://console.cloud.google.com/bigquery;cameo=analyticshub;pageName=exchange-detail;pageResource=maps-platform-analytics-hub.us.places_insights_BR_sample) | `places_insights___br___sample.places_sample` |\n| Toronto, Canada | [CA](https://console.cloud.google.com/bigquery;cameo=analyticshub;pageName=exchange-detail;pageResource=maps-platform-analytics-hub.us.places_insights_CA_sample) | `places_insights___ca___sample.places_sample` |\n| Paris, France | [FR](https://console.cloud.google.com/bigquery;cameo=analyticshub;pageName=exchange-detail;pageResource=maps-platform-analytics-hub.us.places_insights_FR_sample) | `places_insights___fr___sample.places_sample` |\n| Berlin, Germany | [DE](https://console.cloud.google.com/bigquery;cameo=analyticshub;pageName=exchange-detail;pageResource=maps-platform-analytics-hub.us.places_insights_DE_sample) | `places_insights___de___sample.places_sample` |\n| London, Great Britian | [GB](https://console.cloud.google.com/bigquery;cameo=analyticshub;pageName=exchange-detail;pageResource=maps-platform-analytics-hub.us.places_insights_GB_sample) | `places_insights___gb___sample.places_sample` |\n| Mumbai, India | [IN](https://console.cloud.google.com/bigquery;cameo=analyticshub;pageName=exchange-detail;pageResource=maps-platform-analytics-hub.us.places_insights_IN_sample) | `places_insights___in___sample.places_sample` |\n| Jakarta, Indonesia | [ID](https://console.cloud.google.com/bigquery;cameo=analyticshub;pageName=exchange-detail;pageResource=maps-platform-analytics-hub.us.places_insights_ID_sample) | `places_insights___id___sample.places_sample` |\n| Rome, Italy | [IT](https://console.cloud.google.com/bigquery;cameo=analyticshub;pageName=exchange-detail;pageResource=maps-platform-analytics-hub.us.places_insights_IT_sample) | `places_insights___it___sample.places_sample` |\n| Tokyo, Japan | [JP](https://console.cloud.google.com/bigquery;cameo=analyticshub;pageName=exchange-detail;pageResource=maps-platform-analytics-hub.us.places_insights_JP_sample) | `places_insights___jp___sample.places_sample` |\n| Mexico City, Mexico | [MX](https://console.cloud.google.com/bigquery;cameo=analyticshub;pageName=exchange-detail;pageResource=maps-platform-analytics-hub.us.places_insights_MX_sample) | `places_insights___mx___sample.places_sample` |\n| Madrid, Spain | [ES](https://console.cloud.google.com/bigquery;cameo=analyticshub;pageName=exchange-detail;pageResource=maps-platform-analytics-hub.us.places_insights_ES_sample) | `places_insights___es___sample.places_sample` |\n| Zurich, Switzerland | [CH](https://console.cloud.google.com/bigquery;cameo=analyticshub;pageName=exchange-detail;pageResource=maps-platform-analytics-hub.us.places_insights_CH_sample) | `places_insights___ch___sample.places_sample` |\n| New York City, United States | [US](https://console.cloud.google.com/bigquery;cameo=analyticshub;pageName=exchange-detail;pageResource=maps-platform-analytics-hub.us.places_insights_US_sample) | `places_insights___us___sample.places_sample` `places_insights___us___sample.brands` |"]]