Why GEORADIUS is throwing errors when -85 > Latitude > 85 ?

Comment From: rmca

Is the error you're seeing something like "ERR invalid longitude,latitude pair 86.000000,86.000000"? If so, then that's because those values are outside the allowed bounds as documented here: https://redis.io/commands/geoadd "Valid longitudes are from -180 to 180 degrees. Valid latitudes are from -85.05112878 to 85.05112878 degrees.".

It makes sense that limits that apply to a write command (GEOADD) would also apply to a corresponding read command (GEORADIUS).

Comment From: landru29

So why is there a restriction on latitudes ?

Comment From: tidwall

The restriction is a defined rule of the Web Mercator projection, which Redis uses. This cutoff ensure that latitudes near the poles can be represented on a flat map without a large loss of accuracy. Virtually all online mapping services have the same limitation, Google, Bing, Open Street Maps.

Comment From: hfranco346

So what can we do to save georeference with those latitudes?

Comment From: XChikuX

@hfranco346 This means those latitudes won't be supported by redis. Honestly not sure why that would impede your development journey in any way.

We should close this issue!!

Comment From: oranagra

closing since it's by design, and a common limit in other mapping services.