GEOADD

Adds a named geographic location to a key.

Geospatial · Example verified

Syntax covered here

GEOADD key longitude latitude member

Coordinates are supplied as longitude followed by latitude; the cases add distinct locations in separate calls.

Tested example & replies

Requests below run in order against an empty database. Each connection authenticates with the fixture password first. Quoted values are strings; null is a nil reply; arrays preserve RESP order.

# connection: default
> GEOADD places 13.361389 38.115556 Palermo
1
# connection: default
> GEOADD places 15.087269 37.502669 Catania
1