Redis 为什么不是';这不是乔治亚迪乌斯的电话吗?

Redis 为什么不是';这不是乔治亚迪乌斯的电话吗?,redis,geolocation,geospatial,Redis,Geolocation,Geospatial,将x添加到mytest 127.0.0.1:6379> geoadd mytest -78.45 38.13 x (integer) 1 尝试查找距离x 50.000km内的点: 127.0.0.1:6379> georadius mytest 72.8 19.13 50000 km (empty list or set) 将y添加到mytest: 127.0.0.1:6379> geoadd mytest 72.8 19.13 y (integer) 1 计算x和

将x添加到mytest

127.0.0.1:6379> geoadd mytest -78.45 38.13 x
(integer) 1
  • 尝试查找距离x 50.000km内的点:

    127.0.0.1:6379> georadius mytest 72.8 19.13 50000 km
    (empty list or set)
    
  • 将y添加到mytest:

    127.0.0.1:6379> geoadd mytest 72.8 19.13 y
    (integer) 1
    
  • 计算x和y之间的距离:

    127.0.0.1:6379> geodist mytest x y km
    "12979.3623"
    

  • 如果(4)发现x和y之间的距离只有12979公里,为什么(2)是一个空集?

    这看起来像是一个缺陷-我建议您通过在上打开一个问题来报告它

    有趣的是,请注意:

    127.0.0.1:6379> GEORADIUS mytest -78.45 38.13 50000 km
    1) "x"
    2) "y"
    
    而且:

    127.0.0.1:6379> GEORADIUSBYMEMBER mytest y 50000 km
    1) "y"
    127.0.0.1:6379> GEORADIUSBYMEMBER mytest x 50000 km
    1) "x"
    2) "y"
    

    修复了@redis repo的Bug。