/plushcap/analysis/redis/redis-tracking-bigfoot-with-redis-and-geospatial-data

Tracking Bigfoot with Redis and Geospatial Data

What's this blog post about?

Redis' geospatial data structures are useful for working with location-based data. The key data structure is the Geo Set, which holds a named set of locations on the globe and can be easily updated using the GEOADD command. Other commands include GEOPOS for retrieving coordinates, GEODIST for determining distances between sightings, and GEORADIUS/GEORADIUSBYMEMBER for finding members within a specified radius. Geo Sets are implemented as Sorted Sets in Redis, allowing the use of additional Sorted Set commands such as ZSCORE, ZRANGE, and ZREM. These features can be used to track various types of location-based data, from mobile app users to fleet trucks or animals in an environmental study.

Company
Redis

Date published
April 23, 2020

Author(s)
Guy Royse

Word count
1363

Hacker News points
None found.

Language
English


By Matt Makai. 2021-2024.