Describe the bug
GEOSEARCHSTORE includes the following arguments according to redis.io:
[WITHCOORD] [WITHDIST] [WITHHASH] [STOREDIST]
https://redis.io/commands/geosearchstore
However, using them produces the following error:
(error) ERR STORE option in GEORADIUS is not compatible with WITHDIST, WITHHASH and WITHCOORDS options
Also, to note, the error is talking about GEORADIUS
To reproduce
127.0.0.1:6379> GEOADD Sicily 13.361389 38.115556 Palermo 15.087269 37.502669 Catania 12.758489 38.788135 edge1 17.241510 38.788135 edge2
(integer) 4
127.0.0.1:6379> GEOSEARCHSTORE dest Sicily FROMLONLAT 12 37 BYBOX 400 400 km DESC WITHCOORD
(error) ERR STORE option in GEORADIUS is not compatible with WITHDIST, WITHHASH and WITHCOORDS options
Expected behavior
Return integer for number of elements in destination key
Additional information
@guybe7
Comment From: avimredis
I spoke to @guybe7. Those args are not meant to be supported with this command. We need to 1. Remove those args from redis.io 2. Return a syntax error if they are used (same as any random words)