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

Population Dynamics Insights (PDI) is published as versioned BigQuery tables. Each model
version has its own embedding space, schema, and vector layout. This page refers
to each version by its short name: v1, v1.1, and v2.1.

## Model versions at a glance

The following table summarizes the available model versions, table names, time
coverage, and vector layouts:

| Version | Table name | Time coverage | Vector layout |
|---|---|---|---|
| v2.1 (latest) | `v2_1_s2_z12` | Full-country datasets: monthly, from 2023-10 to the latest month. Some sample datasets: a single month (2025-10). | 5 slices: Search trends, Maps, Busyness, Weather, Air quality |
| v1.1 | `v1_1_s2_z12` | A single month (2025-10) in sample datasets | 3 slices: Search trends, Maps and Busyness, Weather and Air quality |
| v1 | `v1_s2_z12` | A single snapshot (2025-10) | 3 slices: Search trends, Maps and Busyness, Weather and Air quality |

> [!NOTE]
> **Note:** During Preview, a dataset may include more than one table, one for each model version. Only v2.1 will receive updates going forward. Earlier versions (v1 and v1.1) won't be updated and might be removed when PDI becomes generally available in 2027. To avoid rework, build on the latest table version available for your listing. If you already use v1 or v1.1, see the [Migration checklist](https://developers.google.com/maps/documentation/population-dynamics-insights/model-versions.md.txt#migration-checklist).

## Which version should I use?

Follow these guidelines when selecting a model version:

- **Use v2.1 where it's available.** Use the latest version in your dataset because earlier versions won't be updated and might be removed at GA.
- **Stay on one version when you extend an evaluation to more regions.** If you already built your analysis on a specific version, such as v1 in a sample dataset, and you add another region, use the same version in every region. Mixing versions makes results across regions incomparable.
- **Retrain your model when changing model versions.** If you move from an earlier version (v1 or v1.1) to the latest version (v2.1), rebuild your features and retrain and re-evaluate your model using the new version's dataset. Even if you initially tested or evaluated on a v1 or v1.1 sample dataset, you must re-run your modeling on v2.1 to ensure reliability and accuracy. For details, see [Model versions are not comparable](https://developers.google.com/maps/documentation/population-dynamics-insights/model-versions.md.txt#model-versions-not-comparable).

## Full-country and sample datasets

The following table compares full-country and sample datasets:

| Attribute | Full-country dataset | Sample dataset |
|---|---|---|
| Access | Requires a paid license | Provided for evaluation and testing |
| Geography | The entire country | A sub-national area, such as a state or province |
| Time coverage | Monthly, from 2023-10 to the latest month | A single month (2025-10) |
| Model version | v2.1 | Varies by sample dataset (v1, v1.1, or v2.1) |
| Data-source slices | 5 separate slices | Depends on the version: 5 in v2.1, 3 in v1 and v1.1 |

> [!IMPORTANT]
> **Important:** The monthly time series is available only in full-country datasets, which require a paid license. Sample datasets contain a single month, and the model version varies by sample dataset. Check the table name in your dataset. If your sample uses v1 or v1.1, Maps points of interest and Busyness share one slice, and Weather and Air quality share one slice. If you license the full-country dataset after evaluating a sample, you receive the most up-to-date version that includes monthly updates.

## Vector layout by version

Every version uses a 330-dimensional, L2-normalized `features` vector. The
dimension ranges assigned to each data source differ by version. For a
description of each data source, see
[Anatomy of the embedding vector](https://developers.google.com/maps/documentation/population-dynamics-insights/about-data.md.txt#anatomy_of_the_embedding_vector)
in
[About Population Dynamics Insights data](https://developers.google.com/maps/documentation/population-dynamics-insights/about-data.md.txt).

### v2.1

The following table shows the vector layout for v2.1:

| Vector indices | Dimensions | Data source |
|---|---|---|
| 0-127 | 128 | Aggregated Search Trends |
| 128-207 | 80 | Maps (points of interest and the built environment) |
| 208-273 | 66 | Busyness |
| 274-317 | 44 | Weather |
| 318-329 | 12 | Air quality |

### v1 and v1.1

The following table shows the vector layout for v1 and v1.1:

| Vector indices | Dimensions | Data source |
|---|---|---|
| 0-127 | 128 | Aggregated Search Trends |
| 128-255 | 128 | Maps and Busyness (combined) |
| 256-329 | 74 | Weather and Air Quality (combined) |

Because v2.1 separates Maps from Busyness and Weather from Air quality, you can
weight or remove each of the five data sources on its own. For example, you can
compare two locations only on their busyness patterns using indices 208-273. In
v1 and v1.1, you can only work with Maps and Busyness together, and with Weather
and Air quality together.

## Model versions are not comparable

> [!WARNING]
> **Warning:** Each model version has its own embedding space. The same S2 cell can have a very different vector in two versions, and the similarity between two cells in one version doesn't carry over to another version. Treat a move to a new version as a migration and rebuild anything that depends on the vectors.

What this means in practice:

- **Don't train on one version and run inference on another.** For example, a model trained on v2.1 vectors can't score v1 or v1.1 vectors, and a model trained on a v1 sample can't score v2.1 vectors. Retrain the model on the version you plan to use.
- **Don't compare vectors across versions.** For example, don't compute cosine similarity between one cell's v1 vector and another cell's v2.1 vector. Don't compare the same cell's v1 and v2.1 vectors to measure change over time.
- **Don't combine versions in one dataset or time series.** For example, don't use v1 for one region and v2.1 for another in the same analysis, and don't append v2.1 months to v1.1 months to build a longer history.
- **Don't reuse thresholds, clusters, or indexes.** Rebuild similarity cutoffs, cluster centroids, and nearest-neighbor indexes on the new version.
- **Don't reuse slice offsets.** For example, indices 128-255 are Maps and Busyness in v1, but in v2.1 they span all of Maps (128-207) and part of Busyness (208-255).

Months and regions within the same version are comparable with each other.

## Schema differences

v1.1 and v2.1 share one schema. v1 uses the original schema:

| What changed | v1 | v1.1 and v2.1 |
|---|---|---|
| S2 cell identifier | `geo_id` (hex token) and `geo_name` | `s2_cell_token` (same hex token as `geo_id`) and `s2_cell_id` (signed 64-bit cell ID, stored as a string) |
| Time | No date column; one snapshot | `snapshot_date` (the first day of the month); one row for each cell and month |
| Country | Not included | `country_codes` (array) |
| Administrative areas | Scalar columns: `administrative_area_level_1_id`, `administrative_area_level_1_name`, `administrative_area_level_2_id`, `administrative_area_level_2_name` | Array columns: `administrative_area_level_1_ids`, `administrative_area_level_1_names`, `administrative_area_level_2_ids`, `administrative_area_level_2_names`. A cell on a border lists every area it intersects. |

## Migration checklist (v1 or v1.1 to v2.1)

Complete these steps when migrating from v1 or v1.1 to v2.1:

- Point your queries at the v2.1 table (`v2_1_s2_z12`) in your full-country dataset, such as `your-project.population_dynamics___us.v2_1_s2_z12`.
- Replace `geo_id` with `s2_cell_token`.
- Filter or join on `snapshot_date`. Without it, a query returns every month for each cell. For forecasting and change detection best practices, see [Work with monthly historical snapshots](https://developers.google.com/maps/documentation/population-dynamics-insights/use-embeddings.md.txt#work-with-monthly-historical-snapshots) in [Use Population Dynamics Insights embeddings](https://developers.google.com/maps/documentation/population-dynamics-insights/use-embeddings.md.txt).
- Replace the scalar administrative columns with the array columns.
- Update any slice offsets to the v2.1 layout.
- Retrain models and rebuild clusters, indexes, and similarity thresholds on v2.1 vectors.