Skip to content

Instantly share code, notes, and snippets.

@tague
Created February 1, 2018 00:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tague/2888b76d4a2868fa5e2baa41e0d6ecc5 to your computer and use it in GitHub Desktop.
Save tague/2888b76d4a2868fa5e2baa41e0d6ecc5 to your computer and use it in GitHub Desktop.
GEORADIUS with flags Example
127.0.0.1:6379> GEORADIUS NYC:stations:location -73.97297 40.76384 500 ft WITHDIST WITHCOORD ASC
1) 1) "NYC:station:281"
  2) "289.1995"
  3) 1) "-73.97371262311935425"
     2) "40.76439830559216659"
2) 1) "NYC:station:3457"
   2) "383.1782"
   3) 1) "-73.97209256887435913"
      2) "40.76302702144496237"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment