> For the complete documentation index, see [llms.txt](https://gchandra.gitbook.io/big-data-and-tools-with-nosql/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gchandra.gitbook.io/big-data-and-tools-with-nosql/nosql/redis/data-structures/geospatial-index.md).

# Geospatial Index

**Proximity Searches**: These find items close to a given point, such as the nearest restaurants to a user's location.

**Radius Queries**: These queries retrieve items within a specific distance from a point. They are useful for services like delivery area checks or local event discovery.

**Distance Calculation**: Calculate the distance between two geo points.

GEOADD to add a point GEODIST to find the distance between two points GEOSEARCH to find all points within a radius

```
GEOADD locations -75.1118 39.7029 Glassboro 
GEOADD locations -75.2241 39.7393 MullicaHill 
GEODIST locations Glassboro MullicaHill mi

GEOADD locations -75.0246 39.9268 CherryHill 
GEOADD locations -74.9489 39.9689 Moorestown 
GEODIST locations CherryHill Moorestown mi
GEODIST locations CherryHill Moorestown km


```

<https://www.mapsofworld.com/usa/states/new-jersey/lat-long.html>\
\
Check Python example
