@@ -150,3 +150,51 @@ def or_queries(queries):
150150 @staticmethod
151151 def and_queries (queries ):
152152 return str (Query ("and" , None , [json .loads (query ) for query in queries ]))
153+
154+ @staticmethod
155+ def distance_equal (attribute , values , distance , meters = True ):
156+ return str (Query ("distanceEqual" , attribute , [values , distance , meters ]))
157+
158+ @staticmethod
159+ def distance_not_equal (attribute , values , distance , meters = True ):
160+ return str (Query ("distanceNotEqual" , attribute , [values , distance , meters ]))
161+
162+ @staticmethod
163+ def distance_greater_than (attribute , values , distance , meters = True ):
164+ return str (Query ("distanceGreaterThan" , attribute , [values , distance , meters ]))
165+
166+ @staticmethod
167+ def distance_less_than (attribute , values , distance , meters = True ):
168+ return str (Query ("distanceLessThan" , attribute , [values , distance , meters ]))
169+
170+ @staticmethod
171+ def intersects (attribute , values ):
172+ return str (Query ("intersects" , attribute , values ))
173+
174+ @staticmethod
175+ def not_intersects (attribute , values ):
176+ return str (Query ("notIntersects" , attribute , values ))
177+
178+ @staticmethod
179+ def crosses (attribute , values ):
180+ return str (Query ("crosses" , attribute , values ))
181+
182+ @staticmethod
183+ def not_crosses (attribute , values ):
184+ return str (Query ("notCrosses" , attribute , values ))
185+
186+ @staticmethod
187+ def overlaps (attribute , values ):
188+ return str (Query ("overlaps" , attribute , values ))
189+
190+ @staticmethod
191+ def not_overlaps (attribute , values ):
192+ return str (Query ("notOverlaps" , attribute , values ))
193+
194+ @staticmethod
195+ def touches (attribute , values ):
196+ return str (Query ("touches" , attribute , values ))
197+
198+ @staticmethod
199+ def not_touches (attribute , values ):
200+ return str (Query ("notTouches" , attribute , values ))
0 commit comments