GEOPOS

Returns a stored member's geographic coordinates.

Geospatial · Example verified

Syntax covered here

GEOPOS key member

Coordinates are approximate: the case checks proximity to the original longitude and latitude rather than exact decimal equality.

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
> GEOPOS places Palermo
[["13.36138933897018433","38.11555639549629859"]]