# Using Spatial Indexes for analysis

***

## Featured resources

These resources have been designed to get you started. They offer an end-to-end tutorial for creating, enriching and analyzing Spatial Indexes using data freely available on the CARTO platform.

### [Which cell phone towers serve the most people?](https://academy.carto.com/working-with-geospatial-data/introduction-to-spatial-indexes/using-spatial-indexes-for-analysis/which-cell-phone-towers-serve-the-most-people)

<figure><img src="https://3015558743-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFEElAdsRIl9DzfMhbRlB%2Fuploads%2FpcgVq9fPDZjGIW3NmJS4%2Fspatial_indexes_cell%20tower%20kring_map.png?alt=media&#x26;token=74bff16f-d6fc-4b65-bf22-7d4f2ab2e782" alt=""><figcaption></figcaption></figure>

### [Calculating traffic accident rates](https://academy.carto.com/working-with-geospatial-data/introduction-to-spatial-indexes/using-spatial-indexes-for-analysis/calculating-traffic-accident-rates)

<figure><img src="https://3015558743-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFEElAdsRIl9DzfMhbRlB%2Fuploads%2FmoKfeSZh5x574OG4KaKo%2Fcard_accidents_narrow.png?alt=media&#x26;token=a40b0e8c-fda1-499d-b6f5-070e7b8f03fc" alt=""><figcaption></figcaption></figure>

## [Analyzing origin and destination patterns](https://academy.carto.com/creating-workflows/step-by-step-tutorials/analyzing-origin-and-destination-patterns)

<figure><img src="https://3015558743-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFEElAdsRIl9DzfMhbRlB%2Fuploads%2Fz3WITENWkjFPNHdkeDO1%2Facademy_nyc%20taxi%20trips_hero%20image.png?alt=media&#x26;token=d8d2fd0d-5f41-4a31-ab47-4deab53948d2" alt=""><figcaption></figcaption></figure>

***

## Spatial Statistics

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden></th><th data-hidden data-card-cover data-type="files"></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td>How Geographically Weighted Regression works</td><td></td><td></td><td><a href="https://content.gitbook.com/content/FEElAdsRIl9DzfMhbRlB/blobs/FM2002O8C7hsJTRPg5Y2/gwr-airbnb-listings-prices.png">gwr-airbnb-listings-prices.png</a></td><td><a href="https://carto.com/blog/how-geographically-weighted-regression-works">https://carto.com/blog/how-geographically-weighted-regression-works</a></td></tr><tr><td>How to calculate spatial hotspots and which tools do you need?</td><td></td><td></td><td><a href="https://content.gitbook.com/content/FEElAdsRIl9DzfMhbRlB/blobs/gZ7jTHTMQEG6dGdvETYQ/hotspots_amenity_pois_stockholm.png">hotspots_amenity_pois_stockholm.png</a></td><td><a href="https://carto.com/blog/spatial-hotspot-tools">https://carto.com/blog/spatial-hotspot-tools</a></td></tr><tr><td>Space-time hotspots: how to unlock a new dimension of insights</td><td></td><td></td><td><a href="https://3015558743-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFEElAdsRIl9DzfMhbRlB%2Fuploads%2FgQiJFkntCsUoqX9BrWpD%2Fspatial_indexes_spacetime.png?alt=media&#x26;token=f6d9101d-6e46-4efa-a873-451c4bd8cca0">spatial_indexes_spacetime.png</a></td><td><a href="https://carto.com/blog/space-time-hotspots-guide">https://carto.com/blog/space-time-hotspots-guide</a></td></tr><tr><td>Spatial interpolation: which technique is best &#x26; how to run it</td><td></td><td></td><td><a href="https://3015558743-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFEElAdsRIl9DzfMhbRlB%2Fuploads%2FMNTGUwRppcxTMOZBjCxx%2Fcard_interpolation.png?alt=media&#x26;token=d1bb2a85-f461-4b04-a63b-229ba7c32d5c">card_interpolation.png</a></td><td><a href="https://carto.com/blog/spatial-interpolation-techniques-tutorial">https://carto.com/blog/spatial-interpolation-techniques-tutorial</a></td></tr></tbody></table>

***

## For your use case

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden></th><th data-hidden data-card-cover data-type="files"></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td>How To Optimize Location Planning For Wind Turbines</td><td></td><td></td><td><a href="https://3015558743-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFEElAdsRIl9DzfMhbRlB%2Fuploads%2FOD5kRZ5uT711ugvn0llj%2Fcard_wind%20energy%20analysis.png?alt=media&#x26;token=95a9acd4-82c0-4c07-b1a7-165a7a42f204">card_wind energy analysis.png</a></td><td><a href="https://carto.com/blog/location-planning-for-wind-turbines">https://carto.com/blog/location-planning-for-wind-turbines</a></td></tr><tr><td>How to use Location Intelligence to grow London's brunch scene</td><td></td><td></td><td><a href="https://3015558743-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFEElAdsRIl9DzfMhbRlB%2Fuploads%2FBJsWqI9AwIzzzKAhD0Fw%2Fcard_london%20brunch.png?alt=media&#x26;token=bc4ada53-e3b9-4233-a7a9-411fd8e39b08">card_london brunch.png</a></td><td><a href="https://carto.com/blog/location-intelligence-london-brunch">https://carto.com/blog/location-intelligence-london-brunch</a></td></tr><tr><td>Optimizing Site Selection for EV Charging Stations</td><td></td><td></td><td><a href="https://3015558743-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFEElAdsRIl9DzfMhbRlB%2Fuploads%2FdhSG5XwfIeFBbdW4gsnt%2Fcard_ev-charging.png?alt=media&#x26;token=3fdf4663-123d-4eb3-8025-398906b8e7cc">card_ev-charging.png</a></td><td></td></tr><tr><td>Using Spatial Composites for Climate Change Impact Assessment</td><td></td><td></td><td><a href="https://3015558743-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFEElAdsRIl9DzfMhbRlB%2Fuploads%2FZpf2GA7MNPXHJDdpUy12%2Fcard_composites.png?alt=media&#x26;token=30e3f5be-0739-4037-9ab2-93b6996a1d25">card_composites.png</a></td><td><a href="https://carto.com/blog/spatial-composites-climate-change-impact-assessment">https://carto.com/blog/spatial-composites-climate-change-impact-assessment</a></td></tr><tr><td>Cloud-native telco network planning</td><td></td><td></td><td><a href="https://3015558743-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFEElAdsRIl9DzfMhbRlB%2Fuploads%2FxyISqDiaGnd8ie3nFviJ%2Fcard_telco_coverage.png?alt=media&#x26;token=04255a2d-7a74-4d01-9319-fade4117330d">card_telco_coverage.png</a></td><td><a href="https://www.youtube.com/watch?v=wrs8so7jOSE">https://www.youtube.com/watch?v=wrs8so7jOSE</a></td></tr><tr><td>Finding Commercial Hotspots</td><td></td><td></td><td><a href="https://3015558743-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFEElAdsRIl9DzfMhbRlB%2Fuploads%2F7inmx7UgU4hXOhzr6PRc%2Fcard_commercial_hotspots.png?alt=media&#x26;token=f2c84866-6d01-43e2-9100-838ac69a9784">card_commercial_hotspots.png</a></td><td><a href="https://www.youtube.com/watch?v=NaGiWefl4Ts">https://www.youtube.com/watch?v=NaGiWefl4Ts</a></td></tr><tr><td>Analyzing 150 million taxi trips in NYC over space &#x26; time</td><td></td><td></td><td><a href="https://3015558743-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFEElAdsRIl9DzfMhbRlB%2Fuploads%2F43cFfbnsNWJcbsvGDSSS%2Fcard_nyc_taxi_tileset.png?alt=media&#x26;token=f500fc1c-9b83-43c0-8666-08796488a323">card_nyc_taxi_tileset.png</a></td><td><a href="https://www.youtube.com/watch?v=Bb3umikIGXI">https://www.youtube.com/watch?v=Bb3umikIGXI</a></td></tr><tr><td>Understanding accident hotspots</td><td></td><td></td><td><a href="https://3015558743-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFEElAdsRIl9DzfMhbRlB%2Fuploads%2F1xpjiNophyFRLzPIFfwG%2Facademy_accident%20hotspots_hero%20image.png?alt=media&#x26;token=064d2d35-a315-4129-88e8-9876e66f5dfc">academy_accident hotspots_hero image.png</a></td><td><a href="../../creating-workflows/step-by-step-tutorials/understanding-accident-hotspots">understanding-accident-hotspots</a></td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://academy.carto.com/working-with-geospatial-data/introduction-to-spatial-indexes/using-spatial-indexes-for-analysis.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
