GEORADIUSBYMEMBER

Finds locations within a radius of a stored member.

Geospatial · Example verified

Syntax covered here

GEORADIUSBYMEMBER key member radius km

The center member is included in the tested result; distances use kilometers.

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
> GEORADIUSBYMEMBER places Palermo 1 km
["Palermo"]