Store longitude/latitude points in a sorted set.

Section: Geo, bitmaps, and HyperLogLog

Add geospatial members

bash
bash
GEOADD cities -122.4194 37.7749 sf -74.0060 40.7128 nyc

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Geo, bitmaps, and HyperLogLog
Read geospatial coordinates
Return stored coordinates for members.
OpenIn sheetbashsame section
Measure distance between members
Compute the distance between two members.
OpenIn sheetbashsame section
Find nearby members
Find nearby members around coordinates.
OpenIn sheetbashsame section
Modern geo search
Query nearby members using GEOSEARCH.
OpenIn sheetbashsame section
Add elements to HyperLogLog
Approximate cardinality of unique items.
OpenIn sheetbashsame section
Estimate unique count
Read approximate unique cardinality.
OpenIn sheetbashsame section