GEORADIUSBYMEMBER

Works with geospatial indexes stored in sorted sets.

Syntax

GEORADIUSBYMEMBER <key> <member> <radius> <M | KM | FT | MI> [WITHCOORD] [WITHDIST] [WITHHASH] [COUNT <count> [ANY]] [ASC | DESC] [STORE <key> | STOREDIST <key>]

Parameters

  • key: Primary key to read or mutate.
  • member: Set, sorted-set, or geo member.
  • radius: Command-specific radius argument.
  • count: Requested number of items.

Returns

Returns geo members, distances, coordinates, or a stored-result count depending on the selected options.

Examples

GEORADIUSBYMEMBER places berlin 100 KM WITHDIST

BetterKV Notes

  • Group: Geo.
  • Access: Mixed.
  • Status: Implemented in BetterKV with command-specific semantics.