Back to Redis

GEORADIUS_RO

content/commands/georadius_ro.md

latest2.0 KB
Original Source

Read-only variant of the [GEORADIUS]({{< relref "/commands/georadius" >}}) command.

This command is identical to the [GEORADIUS]({{< relref "/commands/georadius" >}}) command, except that it doesn't support the optional STORE and STOREDIST parameters.

Redis Software and Redis Cloud compatibility

| Redis Software | Redis Cloud | <span style="min-width: 9em; display: table-cell">Notes</span> | |:----------------------|:-----------------|:------| | <span title="Supported">✅ Standard</span> <span title="Supported"><nobr>✅ Active-Active</nobr></span> | <span title="Supported">✅ Standard</span> <span title="Supported"><nobr>✅ Active-Active</nobr></span> | Deprecated as of Redis v6.2.0. |

Return information

{{< multitabs id="georadius-ro-return-info" tab1="RESP2" tab2="RESP3" >}}

One of the following:

  • If no WITH* option is specified, an Array reply of matched member names
  • If WITHCOORD, WITHDIST, or WITHHASH options are specified, the command returns an Array reply of arrays, where each sub-array represents a single item:
    • The distance from the center as a floating point number, in the same unit specified in the radius.
    • The Geohash integer.
    • The coordinates as a two items x,y array (longitude,latitude).

-tab-sep-

One of the following:

  • If no WITH* option is specified, an Array reply of matched member names
  • If WITHCOORD, WITHDIST, or WITHHASH options are specified, the command returns an Array reply of arrays, where each sub-array represents a single item:
    • The distance from the center as a floating point number, in the same unit specified in the radius.
    • The Geohash integer.
    • The coordinates as a two items x,y array (longitude,latitude).

{{< /multitabs >}}