wherePolygonContains method

void wherePolygonContains(
  1. String column,
  2. ParseGeoPoint point
)

Add a constraint to the query that requires a particular key's coordinates that contains a point

Implementation

void wherePolygonContains(String column, ParseGeoPoint point) {
  final double latitude = point.latitude;
  final double longitude = point.longitude;

  queries.add(MapEntry<String, dynamic>(_singleQuery,
      '"$column":{"\$geoIntersects":{"\$point":{"__type":"GeoPoint","latitude":$latitude,"longitude":$longitude}}}'));
}