Home / Companies / Redis / Blog / Post Details
Content Deep Dive

Tracking Bigfoot with Redis and Geospatial Data

Blog post from Redis

Post Details
Company
Date Published
Author
Guy Royse
Word Count
1,363
Language
English
Hacker News Points
-
Summary

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.