Skip to content

GEORADIUS returning wrong results #3631

@leandropls

Description

@leandropls

As originally posted on StackOverflow:

  1. Add x to mytest
127.0.0.1:6379> geoadd mytest -78.45 38.13 x
(integer) 1
  1. Try to find points within 50.000km of x:
127.0.0.1:6379> georadius mytest 72.8 19.13 50000 km
(empty list or set)
  1. Add y to mytest:
127.0.0.1:6379> geoadd mytest 72.8 19.13 y
(integer) 1
  1. Calculate distance between x and y:
127.0.0.1:6379> geodist mytest x y km
"12979.3623"

Shouldn't "x" be returned at (2), considering that, by (4), it's only 12979km away?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions