--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To post to this group, send email to redi...@googlegroups.com.
To unsubscribe from this group, send email to redis-db+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/redis-db?hl=en.
Rather than fetch ranges, we pre-calculate all of the boxes that are
within the radius, then perform an automated sequence of [copy the lat
box, filter the lat box, copy the lon box, filter the lon box,
intersect the lat/lon boxes], which are then unioned with other boxes.
By including other filters that are defined via sets and zsets, we
then intersect further to filter down the items in the final zset,
which we can fetch fully or paginate through as necessary.
It's not nearly as computationally elegant as using geohashing, and it
does use twice as much space. But it is a lot easier to wrap your head
around.
Regards,
- Josiah