File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
packages/dart/lib/src/network Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -302,6 +302,15 @@ class QueryBuilder<T extends ParseObject> {
302
302
_SINGLE_QUERY , '"$column ":{"\$ geoWithin":${jsonEncode (dictionary )}}' ));
303
303
}
304
304
305
+ /// Add a constraint to the query that requires a particular key's coordinates that contains a point
306
+ void wherePolygonContains (String column,ParseGeoPoint point){
307
+ final double latitude = point.latitude;
308
+ final double longitude = point.longitude;
309
+
310
+ queries.add (MapEntry <String , dynamic >(_SINGLE_QUERY ,
311
+ '"$column ":{"\$ geoIntersects":{"\$ point":{"__type":"GeoPoint","latitude":$latitude ,"longitude":$longitude }}}' ));
312
+ }
313
+
305
314
/// Add a constraint to the query that requires a particular key's value match another QueryBuilder
306
315
void whereMatchesQuery <E extends ParseObject >(
307
316
String column, QueryBuilder <E > query) {
You can’t perform that action at this time.
0 commit comments