Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
9bad29b
Merge pull request #1 from googlemaps-samples/staging
anubis05 Sep 8, 2025
b3e23a3
Nevada site selection notebook
henrikvalv3 Sep 25, 2025
f9265aa
Spot check results notebook
henrikvalv3 Sep 25, 2025
932a2b8
Improve Places data handling
henrikvalv3 Oct 6, 2025
e60e37e
Merge pull request #2 from googlemaps-samples/promote/notebook-updates
anubis05 Oct 8, 2025
22461a1
Merge imagery_insights folder from staging to main
anubis05 Dec 2, 2025
eb57334
Moved classify road signs
anubis05 Dec 2, 2025
983d52c
Added license information
anubis05 Dec 2, 2025
1bcdb9e
Year updqted
anubis05 Dec 2, 2025
57d583c
feat: port sample_queries from staging branch
henrikvalv3 Dec 2, 2025
b159c15
Rename the product name to Street View Insights
anubis05 Dec 2, 2025
3d4bdb4
Changed name to be in sync with docs
anubis05 Dec 2, 2025
77a8635
Made all the initialization look similar
anubis05 Dec 2, 2025
6d592cc
Updated Initialization block
anubis05 Dec 2, 2025
9966b92
Removed some redundant comments
anubis05 Dec 2, 2025
6d82c08
Edited readme files
anubis05 Dec 3, 2025
3d03c6a
inital push of rmi agent code
KMarkert Jan 15, 2026
93b653d
adding example .env file for agent
KMarkert Jan 15, 2026
20d8f60
updating prompt and injecting .env info
KMarkert Jan 15, 2026
1adbb7f
enabling thinking for root-agent
KMarkert Jan 15, 2026
ce417be
updating README with setup instructions
KMarkert Jan 15, 2026
635444d
adding apache 2.0 license header
KMarkert Jan 16, 2026
7734d4d
Merge pull request #14 from KMarkert/main
anubis05 Jan 20, 2026
2b2d84a
chore: add standard .gitignore
henrikvalv3 Jan 28, 2026
d771428
Merge pull request #15 from googlemaps-samples/chore/add-standard-git…
henrikvalv3 Jan 28, 2026
ec57179
feat(notebooks): Refactor notebook to use %%bigquery magic and add Op…
henrikvalv3 Jan 28, 2026
41d1d6c
Merge pull request #16 from googlemaps-samples/feat/update-nevada-sit…
anubis05 Jan 28, 2026
110a563
feat(notebooks): add sample data demo notebook and directory
henrikvalv3 Jan 29, 2026
766d0ae
docs(notebooks): add interactive links to demo header
henrikvalv3 Jan 29, 2026
2529115
Merge pull request #17 from googlemaps-samples/feat/add-sample-data-demo
henrikvalv3 Jan 29, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# --- OS System Files
# Mac
.DS_Store
.AppleDouble
.LSOverride

# Windows
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
Desktop.ini
$RECYCLE.BIN/

# Linux
*~
.fuse_hidden*
.directory
.Trash-*

# --- Python ---
# Compiled bytecode
__pycache__/
*.pyc
*.pyo
*.pyd

# Virtual Environments
venv/
env/
.venv/

# --- Jupyter Notebooks
.ipynb_checkpoints

# --- Environment Variables ---
.env

# --- IDE/Editor Settings
.vscode/
.idea/
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Insights Recipes
# Insights samples

This repository contains samples for the Insights produts from Google Maps Platform.

You can learn more about the products on the [product page](https://mapsplatform.google.com/maps-products/geospatial-analytics)

### Imagery Insights
### Street View Insights

[Docs](https://developers.google.com/maps/documentation/imagery-insights)

Expand Down
35 changes: 35 additions & 0 deletions places_insights/notebooks/nevada_site_selection/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
### **Site Selection in Las Vegas using Places Insights and BigQuery**

**Overall Goal**

This notebook demonstrates a multi-stage site selection workflow for a new coffee shop in Las Vegas. It combines broad competitive analysis, custom commercial suitability scoring, and target market density analysis to identify prime locations, then visualizes the results on a combined, interactive map.

**Key Technologies Used**

* **[Places Insights](https://developers.google.com/maps/documentation/placesinsights)**: To provide the core Places dataset and the `PLACES_COUNT_PER_H3` function.
* **[BigQuery](https://cloud.google.com/bigquery):**: To perform large-scale geospatial analysis and calculate suitability scores.
* **[Google Maps Place Details API](https://developers.google.com/maps/documentation/places/web-service/place-details):** To fetch rich, detailed information (name, address, rating) for specific ground-truth locations.
* **[Google Maps 2D Tiles](https://developers.google.com/maps/documentation/tile/2d-tiles-overview):** To use Google Maps as the interactive basemap.
* **Python Libraries:**
* **[GeoPandas](https://geopandas.org/en/stable/)** for spatial data manipulation.
* **[Folium](https://python-visualization.github.io/folium/latest/)** for creating the final interactive, layered map.

See [Google Maps Platform Pricing](https://mapsplatform.google.com/intl/en_uk/pricing/) For API costs assocated with running this notebook.

**The Step-by-Step Workflow**

1. **Analyze Competitor Density:** We begin by using BigQuery to analyze the distribution of major competitor brands across Clark County ZIP codes. This initial step helps identify broad areas with lower market saturation.

2. **Identify Prime Commercial Zones:** The notebook then runs a more sophisticated query to calculate a custom suitability score for H3 hexagonal cells. This score is based on the weighted density of complementary businesses (restaurants, bars, casinos, tourist attractions), pinpointing the most commercially vibrant areas.

3. **Find Target Market Hotspots & Synthesize:** Next, we use the `PLACES_COUNT_PER_H3` function to find the density of our target business type—coffee shops. The notebook then **automatically** cross-references these coffee shop counts with the highest-scoring suitability zones to identify the most promising cells for a new location.

4. **Create a Combined Visualization:** In the final step, we generate a single, layered map. The **base layer** is a choropleth "heatmap" showing the suitability scores across Las Vegas. The **top layer** displays individual pins for existing coffee shops in the top-ranked zones, providing a direct, ground-level view of the current market landscape.

**How to Use This Notebook**

1. **\*\*Set Up Secrets:\*\*** Before you begin, you must configure two secrets in the Colab “Secrets” tab (the 🔑 key icon on the left menu):
* `GCP_PROJECT`: Your Google Cloud Project ID with access to Places Insights.
* `GMP_API_KEY`: Your Google Maps Platform API key. Ensure the **Maps Tile API** and **Places API (new)** are enabled for this key in your GCP console.

2. **Run the Cells:** Once the secrets are set, simply run the cells in order from top to bottom. Each visualization will appear as the output of its corresponding code cell.
Loading