whereWithinGeoBox method

void whereWithinGeoBox(
  1. String key,
  2. ParseGeoPoint southwest,
  3. ParseGeoPoint northeast
)

Add a constraint to the query that requires a particular key's coordinates be contained within a given rectangular geographic bounding box.

Implementation

void whereWithinGeoBox(
    String key, ParseGeoPoint southwest, ParseGeoPoint northeast) {
  List<dynamic> array = [];
  array.add(southwest);
  array.add(northeast);
  Map<String, List<dynamic>> dictionary = Map();
  dictionary.putIfAbsent("\$box", () => array);
  _addCondition(key, "\$within", dictionary);
}