summaryrefslogtreecommitdiff
path: root/examples/redis-unstable/src/commands/geosearchstore.json
diff options
context:
space:
mode:
Diffstat (limited to 'examples/redis-unstable/src/commands/geosearchstore.json')
-rw-r--r--examples/redis-unstable/src/commands/geosearchstore.json228
1 files changed, 228 insertions, 0 deletions
diff --git a/examples/redis-unstable/src/commands/geosearchstore.json b/examples/redis-unstable/src/commands/geosearchstore.json
new file mode 100644
index 0000000..dfbdaaa
--- /dev/null
+++ b/examples/redis-unstable/src/commands/geosearchstore.json
@@ -0,0 +1,228 @@
1{
2 "GEOSEARCHSTORE": {
3 "summary": "Queries a geospatial index for members inside an area of a box or a circle, optionally stores the result.",
4 "complexity": "O(N+log(M)) where N is the number of elements in the grid-aligned bounding box area around the shape provided as the filter and M is the number of items inside the shape",
5 "group": "geo",
6 "since": "6.2.0",
7 "arity": -8,
8 "function": "geosearchstoreCommand",
9 "history": [
10 [
11 "7.0.0",
12 "Added support for uppercase unit names."
13 ]
14 ],
15 "command_flags": [
16 "WRITE",
17 "DENYOOM"
18 ],
19 "acl_categories": [
20 "GEO"
21 ],
22 "key_specs": [
23 {
24 "flags": [
25 "OW",
26 "UPDATE"
27 ],
28 "begin_search": {
29 "index": {
30 "pos": 1
31 }
32 },
33 "find_keys": {
34 "range": {
35 "lastkey": 0,
36 "step": 1,
37 "limit": 0
38 }
39 }
40 },
41 {
42 "flags": [
43 "RO",
44 "ACCESS"
45 ],
46 "begin_search": {
47 "index": {
48 "pos": 2
49 }
50 },
51 "find_keys": {
52 "range": {
53 "lastkey": 0,
54 "step": 1,
55 "limit": 0
56 }
57 }
58 }
59 ],
60 "arguments": [
61 {
62 "name": "destination",
63 "type": "key",
64 "key_spec_index": 0
65 },
66 {
67 "name": "source",
68 "type": "key",
69 "key_spec_index": 1
70 },
71 {
72 "name": "from",
73 "type": "oneof",
74 "arguments": [
75 {
76 "token": "FROMMEMBER",
77 "name": "member",
78 "type": "string"
79 },
80 {
81 "token": "FROMLONLAT",
82 "name": "fromlonlat",
83 "type": "block",
84 "arguments": [
85 {
86 "name": "longitude",
87 "type": "double"
88 },
89 {
90 "name": "latitude",
91 "type": "double"
92 }
93 ]
94 }
95 ]
96 },
97 {
98 "name": "by",
99 "type": "oneof",
100 "arguments": [
101 {
102 "name": "circle",
103 "type": "block",
104 "arguments": [
105 {
106 "token": "BYRADIUS",
107 "name": "radius",
108 "type": "double"
109 },
110 {
111 "name": "unit",
112 "type": "oneof",
113 "arguments": [
114 {
115 "name": "m",
116 "type": "pure-token",
117 "token": "m"
118 },
119 {
120 "name": "km",
121 "type": "pure-token",
122 "token": "km"
123 },
124 {
125 "name": "ft",
126 "type": "pure-token",
127 "token": "ft"
128 },
129 {
130 "name": "mi",
131 "type": "pure-token",
132 "token": "mi"
133 }
134 ]
135 }
136 ]
137 },
138 {
139 "name": "box",
140 "type": "block",
141 "arguments": [
142 {
143 "token": "BYBOX",
144 "name": "width",
145 "type": "double"
146 },
147 {
148 "name": "height",
149 "type": "double"
150 },
151 {
152 "name": "unit",
153 "type": "oneof",
154 "arguments": [
155 {
156 "name": "m",
157 "type": "pure-token",
158 "token": "m"
159 },
160 {
161 "name": "km",
162 "type": "pure-token",
163 "token": "km"
164 },
165 {
166 "name": "ft",
167 "type": "pure-token",
168 "token": "ft"
169 },
170 {
171 "name": "mi",
172 "type": "pure-token",
173 "token": "mi"
174 }
175 ]
176 }
177 ]
178 }
179 ]
180 },
181 {
182 "name": "order",
183 "type": "oneof",
184 "optional": true,
185 "arguments": [
186 {
187 "name": "asc",
188 "type": "pure-token",
189 "token": "ASC"
190 },
191 {
192 "name": "desc",
193 "type": "pure-token",
194 "token": "DESC"
195 }
196 ]
197 },
198 {
199 "name": "count-block",
200 "type": "block",
201 "optional": true,
202 "arguments": [
203 {
204 "token": "COUNT",
205 "name": "count",
206 "type": "integer"
207 },
208 {
209 "name": "any",
210 "token": "ANY",
211 "type": "pure-token",
212 "optional": true
213 }
214 ]
215 },
216 {
217 "name": "storedist",
218 "token": "STOREDIST",
219 "type": "pure-token",
220 "optional": true
221 }
222 ],
223 "reply_schema": {
224 "description": "the number of elements in the resulting set",
225 "type": "integer"
226 }
227 }
228}