Skip to content

Commit e6f257a

Browse files
committed
Merge pull request #61 from leadermt/master
New geospatial commands
2 parents bb0cd7c + a00d144 commit e6f257a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Connection.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,12 @@ class Connection extends Component
227227
'ZREVRANK', // key member Determine the index of a member in a sorted set, with scores ordered from high to low
228228
'ZSCORE', // key member Get the score associated with the given member in a sorted set
229229
'ZUNIONSTORE', // destination numkeys key [key ...] [WEIGHTS weight [weight ...]] [AGGREGATE SUM|MIN|MAX] Add multiple sorted sets and store the resulting sorted set in a new key
230+
'GEOADD', // key longitude latitude member [longitude latitude member ...] Add point
231+
'GEODIST', // key member1 member2 [unit] Return the distance between two members
232+
'GEOHASH', // key member [member ...] Return valid Geohash strings
233+
'GEOPOS', // key member [member ...] Return the positions (longitude,latitude)
234+
'GEORADIUS', // key longitude latitude radius m|km|ft|mi [WITHCOORD] [WITHDIST] [WITHHASH] [COUNT count] Return the members
235+
'GEORADIUSBYMEMBER', // key member radius m|km|ft|mi [WITHCOORD] [WITHDIST] [WITHHASH] [COUNT count]
230236
];
231237

232238
/**

0 commit comments

Comments
 (0)