> Documentation index: https://developers.google.com/maps/documentation/llms.txt

Places Insights makes Google Maps places data available as BigQuery data exchange listings (with no REST endpoint) so you can write SQL queries or call predefined Places Count functions for aggregated place counts, density, and monthly historical change analysis (back to January 2024) filtered by attributes such as type, brand, rating, opening hours, and EV charging.

## Places Insights: key facts

- **Product:** Places Insights
- **Also known as:** Places Insights dataset
- **Category:** Analytics
- **Platform:** Dataset
- **Launch stage:** GA
- **Lifecycle:** Active
- **Overview:** [Places Insights overview](https://developers.google.com/maps/documentation/placesinsights/overview.md.txt)
- **Regional availability:** Limited. Full datasets for 50 supported countries and regions, plus city sample datasets. Brands data is available only in the US, Canada, the UK, and Australia. You can query only the listings you've subscribed to. ([coverage details](https://developers.google.com/maps/documentation/placesinsights/reference/supported-locations.md.txt))

## Places Insights: when to use it

**Use Places Insights when:**

- You need aggregated counts or density of places by type, brand, rating, hours, EV charging, or accessibility within an area, queried with SQL in BigQuery.
- You need POI context for site selection, location performance evaluation, sales forecasting, or market research models.
- You need place counts or sample Place IDs grouped by H3 cells or custom geographic boundaries.
- You need to analyze place trends or compare store openings and closings across monthly snapshots back to January 2024.
**Don't use Places Insights when:**

- You need details for an individual place, such as name, address, or hours, instead of aggregate counts. Use [Places API (New)](https://developers.google.com/maps/documentation/places/web-service/quick-reference.md.txt) instead.
- You need an HTTP REST API for real-time place counts or place IDs instead of querying BigQuery with SQL. Use [Places Aggregate API](https://developers.google.com/maps/documentation/places-aggregate/quick-reference.md.txt) instead.
- You need ML embeddings that capture search trends, human activity patterns, and environmental context alongside POI counts. Use [Population Dynamics Insights](https://developers.google.com/maps/documentation/population-dynamics-insights/quick-reference.md.txt) instead.

## Places Insights: setup

- **Get started:** [Set up Places Insights](https://developers.google.com/maps/documentation/placesinsights/cloud-setup.md.txt)
- **Reference:** [Places Insights reference](https://developers.google.com/maps/documentation/placesinsights/reference.md.txt)
- **Pricing:** [Places Insights usage and billing](https://developers.google.com/maps/documentation/placesinsights/quota-and-pricing.md.txt)
- **Policies:** [Places Insights policies](https://developers.google.com/maps/documentation/placesinsights/policies.md.txt)
- **Release notes:** [Places Insights release notes](https://developers.google.com/maps/documentation/placesinsights/release-notes.md.txt)

## Places Insights: related products

- **Often used with:** [Places API (New)](https://developers.google.com/maps/documentation/places/web-service/quick-reference.md.txt), [Geocoding API](https://developers.google.com/maps/documentation/geocoding/quick-reference.md.txt), [Population Dynamics Insights](https://developers.google.com/maps/documentation/population-dynamics-insights/quick-reference.md.txt)

## Places Insights: common mistakes

- **Problem:** Direct SQL queries on the places tables enforce an aggregation threshold of 1 (requiring `WITH AGGREGATION_THRESHOLD`): if a result count is 0, the entire row is omitted from the results without an error. **Fix:** Use Places Count functions (for example `PLACES_COUNT_V2`, `PLACES_COUNT_PER_TYPE_V2`, `PLACES_COUNT_PER_H3`, or `PLACES_COUNT_CHANGE`), which return explicit counts over a minimum search area of 40 m × 40 m. See [/maps/documentation/placesinsights/queries](https://developers.google.com/maps/documentation/placesinsights/queries.md.txt).
- **Problem:** A place is counted only if its center point falls inside the location restriction, so large places such as parks whose center is outside the area are excluded. **Fix:** Size the search area or polygon so that it contains the center points of the places you want to count. See [/maps/documentation/placesinsights/queries](https://developers.google.com/maps/documentation/placesinsights/queries.md.txt).
- **Problem:** The JSON object passed to `PLACES_COUNT_PER_H3` has a 1 MB size limit; complex boundary geometries with thousands of vertices passed under the `'geography'` key cause execution failures. **Fix:** Simplify geometries with `ST_SIMPLIFY` before passing them to the function. See [/maps/documentation/placesinsights/place-count-functions/places-count-per-h3](https://developers.google.com/maps/documentation/placesinsights/place-count-functions/places-count-per-h3.md.txt).
- **Problem:** If the `snapshot_date` filter is omitted from a Places Count function call, the query returns data from the most recent snapshot, not historical data. **Fix:** Pass `snapshot_date` (or `month1`/`month2` for `PLACES_COUNT_CHANGE`) in `YYYY-MM` format inside `JSON_OBJECT` (back to `2024-01`). Direct SQL queries on `places_historical` and `places_sample_historical` require `DATE` format `YYYY-MM-01`. See [/maps/documentation/placesinsights/overview](https://developers.google.com/maps/documentation/placesinsights/overview.md.txt).
- **Problem:** `PLACES_COUNT_V2`, `PLACES_COUNT_PER_TYPE_V2`, and `PLACES_COUNT_CHANGE` fail if you pass a `geographies` array inside `JSON_OBJECT` or use named `=>` SQL parameters. **Fix:** Pass a `TABLE input_geographies` argument with `geo_id` (`STRING`) and `geo` (`GEOGRAPHY`) columns plus a `JSON_OBJECT` filters argument (`PLACES_COUNT_PER_TYPE_V2` also takes `target_types` as an `ARRAY<STRING>` second argument). See [/maps/documentation/placesinsights/place-count-functions/places-count-v2](https://developers.google.com/maps/documentation/placesinsights/place-count-functions/places-count-v2.md.txt).
- **Problem:** Direct SQL queries on raw `places` tables can't select row-level `id` or business `name` columns (there is no `name` column), and Places Count functions cap `sample_place_ids` at 250 per row. **Fix:** Call a Places Count function to retrieve `sample_place_ids`, then pass them to Places API (New) Place Details to look up business names, addresses, or phone numbers. See [/maps/documentation/placesinsights/overview](https://developers.google.com/maps/documentation/placesinsights/overview.md.txt).
- **Problem:** Passing an `input_geographies` table in a different BigQuery region than the linked Places Insights dataset, or with duplicate `geo_id` values, causes query failures or incorrect joins. **Fix:** Create or stage `input_geographies` in the same BigQuery region as the linked dataset and make sure every row has a unique `geo_id`. See [/maps/documentation/placesinsights/place-count-functions/places-count-v2](https://developers.google.com/maps/documentation/placesinsights/place-count-functions/places-count-v2.md.txt).
- **Problem:** Passing a `PLACES_COUNT_PER_H3` CTE directly as `TABLE input_geographies` into `PLACES_COUNT_CHANGE` fails with a `400 BadRequest` correlated subquery error. **Fix:** Pass base-table polygons or an inline `UNNEST([STRUCT(...)])` table expression instead of chaining a `PLACES_COUNT_PER_H3` CTE directly into `PLACES_COUNT_CHANGE`. See [/maps/documentation/placesinsights/place-count-functions/places-count-change](https://developers.google.com/maps/documentation/placesinsights/place-count-functions/places-count-change.md.txt).

## Places Insights: legacy and deprecated features

- **`PLACES_COUNT`:** Legacy. **Replacement:** `PLACES_COUNT_V2`. **Symptom:** Returns a single count with no Place IDs, processes one search area per call, and counts the geography definition toward the 1 MB JSON parameter limit.
- **`PLACES_COUNT_PER_TYPE`:** Legacy. **Replacement:** `PLACES_COUNT_PER_TYPE_V2`. **Symptom:** Processes a single search geography per call and counts the geography definition toward the 1 MB JSON parameter limit.
- **`PLACES_COUNT_PER_GEO`:** Legacy. **Replacement:** `PLACES_COUNT_V2`. **Symptom:** Passes the `geographies` array inside the JSON parameter instead of a table parameter, so all geography definitions count toward the 1 MB JSON limit.

## What you can do with Places Insights

See the guides linked below for each task, or compare across products in the
[Capabilities Explorer](https://developers.google.com/maps/documentation/capabilities-explorer.md.txt).

- [Choose between Places Count functions and direct BigQuery SQL queries in Places Insights.](https://developers.google.com/maps/documentation/placesinsights/overview.md.txt) **Note:** Places Insights is a BigQuery dataset queried with SQL (not an HTTP REST API; do not use Places Aggregate API at `areainsights.googleapis.com`). Recommended functions are `PLACES_COUNT_PER_H3`, `PLACES_COUNT_V2`, `PLACES_COUNT_PER_TYPE_V2`, and `PLACES_COUNT_CHANGE`; `PLACES_COUNT`, `PLACES_COUNT_PER_TYPE`, and `PLACES_COUNT_PER_GEO` are legacy.
- [Set up BigQuery and subscribe to Places Insights Analytics Hub listings.](https://developers.google.com/maps/documentation/placesinsights/cloud-setup.md.txt) **Note:** Requires onboarding via the sign-up form, BigQuery API and Analytics Hub API enabled, and `roles/analyticshub.subscriptionOwner`, `roles/bigquery.user`, and `roles/bigquery.dataViewer`. Each country or sample city listing is subscribed separately; sample listings cover the city proper only.
- [Check Places Insights dataset coverage, sample listings, and aggregation rules.](https://developers.google.com/maps/documentation/placesinsights/about-data.md.txt) **Note:** Covers 50 full-country datasets and 50 city sample datasets (city proper only). Direct SQL enforces an aggregation threshold of 1 (omitting 0-count rows); Places Count functions enforce a 40 m × 40 m minimum search area and return up to 250 `sample_place_ids` per row.
- [Query Places Insights datasets with Places Count functions and monthly historical snapshots.](https://developers.google.com/maps/documentation/placesinsights/get-started.md.txt) **Note:** Call Places Count functions in the SQL `FROM` clause without `WITH AGGREGATION_THRESHOLD`. Pass optional `snapshot_date` in `YYYY-MM` format (monthly snapshots back to `2024-01`; defaults to the latest snapshot). Pass returned `sample_place_ids` to Places API (New) Place Details to look up individual place names or addresses.
- [Query Places Insights tables directly in BigQuery SQL for custom aggregations and joins.](https://developers.google.com/maps/documentation/placesinsights/queries.md.txt) **Note:** Direct SQL queries must include `SELECT WITH AGGREGATION_THRESHOLD` (threshold is 1; 0-count rows are omitted) and can't return individual place IDs or business names. For historical tables (`places_historical` and `places_sample_historical`), filter `snapshot_date` using `DATE` format `YYYY-MM-01` (back to `2024-01-01`).
- [Batch-count places and retrieve sample Place IDs across multiple geographies with PLACES_COUNT_V2.](https://developers.google.com/maps/documentation/placesinsights/place-count-functions/places-count-v2.md.txt) **Note:** Call `PLACES_COUNT_V2(TABLE input_geographies, filters)` where `input_geographies` has `geo_id` (`STRING`) and `geo` (`GEOGRAPHY`). Returns `geo_id`, `input_geography`, `place_count` (including 0), and up to 250 `sample_place_ids`. Supports optional `snapshot_date` (`YYYY-MM`).
- [Batch-count places grouped by place type across multiple geographies with PLACES_COUNT_PER_TYPE_V2.](https://developers.google.com/maps/documentation/placesinsights/place-count-functions/places-count-per-type-v2.md.txt) **Note:** Call `PLACES_COUNT_PER_TYPE_V2(TABLE input_geographies, target_types, filters)` passing a `TABLE` (`geo_id`, `geo`), an `ARRAY<STRING>` of `target_types`, and a `JSON_OBJECT` filters argument. Returns `geo_id`, `input_geography`, `place_type`, `place_count` (including 0), and up to 250 `sample_place_ids`.
- [Aggregate regional place density into H3 hexagonal grid cells with PLACES_COUNT_PER_H3.](https://developers.google.com/maps/documentation/placesinsights/place-count-functions/places-count-per-h3.md.txt) **Note:** Call `PLACES_COUNT_PER_H3(filters)` with a single `JSON_OBJECT` containing required `geography` and `h3_resolution` (`0` to `11`). Returns `h3_cell_index`, `geography`, `count`, and up to 250 `sample_place_ids`. Simplify complex boundary geometries with `ST_SIMPLIFY` to stay under the 1 MB JSON parameter limit.
- [Compare place counts and added or removed Place IDs between two months with PLACES_COUNT_CHANGE.](https://developers.google.com/maps/documentation/placesinsights/place-count-functions/places-count-change.md.txt) **Note:** Call `PLACES_COUNT_CHANGE(TABLE input_geographies, filters)` where `input_geographies` has `geo_id` (`STRING`) and `geo` (`GEOGRAPHY`) and `filters` requires `month1` and `month2` in `YYYY-MM` format (monthly snapshots back to `2024-01`). Returns `geo_id`, `start_count`, `end_count`, `net_change`, `percentage_change`, `compound_monthly_growth_rate`, `added_count`, `removed_count`, `sample_added_place_ids`, and `sample_removed_place_ids`.
- [Filter and query place counts by commercial business brand IDs in BigQuery.](https://developers.google.com/maps/documentation/placesinsights/brands.md.txt) **Note:** Brands data (`brands` table and the `brand_ids` filter on Places Count functions) is available for the US, Canada, United Kingdom, and Australia.
- [Inspect the core BigQuery table schema and opening hours fields for Places Insights.](https://developers.google.com/maps/documentation/placesinsights/reference/core-schema.md.txt) **Note:** Applies to BigQuery `places` and `places_historical` tables (not a REST response schema). There is no business `name` column; use `sample_place_ids` from Places Count functions with Places API (New) to look up individual place names or contact details.
- [Inspect country-specific BigQuery table schemas and supported dataset locations for Places Insights.](https://developers.google.com/maps/documentation/placesinsights/reference/country-schema.md.txt) **Note:** Covers per-country BigQuery dataset and table names (such as `places_insights___us.places`) and country-specific administrative area columns. Direct SQL queries on country tables must use `SELECT WITH AGGREGATION_THRESHOLD` and can't return row-level `id` or `name` columns.
- [Look up supported place types for filtering Places Insights BigQuery queries.](https://developers.google.com/maps/documentation/placesinsights/place-types.md.txt) **Note:** Query the built-in `types` table in each subscribed listing (for example, `places_insights___us.types`) or check the place types reference. Places Insights is a BigQuery dataset; do not use Places Aggregate API (`areainsights.googleapis.com/v1:computeInsights`) or `includedTypes`/`includedPrimaryTypes`.
- [Filter Places Count function queries by geography, types, brands, ratings, opening hours, EV charging, and snapshot date.](https://developers.google.com/maps/documentation/placesinsights/reference/filter-params.md.txt) **Note:** Filter keys are case-sensitive inside `JSON_OBJECT(...)` (not named `=>` SQL parameters). Supported filters include `snapshot_date` (`YYYY-MM`), `month1`/`month2` (`PLACES_COUNT_CHANGE`), `brand_ids`, `regular_opening_hours`, `min_ev_charge_connector_count`, `max_ev_charge_connector_count`, `max_ev_max_charge_rate_kw`, and `ev_charge_connector_types`. For `PLACES_COUNT_V2`, `PLACES_COUNT_PER_TYPE_V2`, and `PLACES_COUNT_CHANGE`, pass geographies as `TABLE input_geographies` rather than a JSON `geographies` array.
- [Visualize Places Insights query results in BigQuery Studio, Colab, Data Studio, or BigQuery Geo Viz.](https://developers.google.com/maps/documentation/placesinsights/visualize-data.md.txt) **Note:** Most Places Count functions return `GEOGRAPHY` columns (`geography` or `input_geography`) that render directly in BigQuery Studio Visualization and Data Studio (`PLACES_COUNT_CHANGE` returns `geo_id` only, so join it back to `input_geographies` to map results).