Beispiel #1
0
        public NCMBQuery WithinSquare(string name, NCMBGeoPoint southWestVertex, NCMBGeoPoint northEastVertex)
        {
            var box = new JObject();
            var ary = new JArray();

            ary.Add(southWestVertex.ToJson());
            ary.Add(northEastVertex.ToJson());
            box.Add("$box", ary);
            return(this.SetOperand(name, box, "$within"));
        }
Beispiel #2
0
 public NCMBQuery WithinRadians(string name, NCMBGeoPoint value, double maxDistance)
 {
     this.SetOperand(name, value.ToJson(), "$nearSphere");
     this.where[name]["$maxDistanceInRadians"] = maxDistance;
     return(this);
 }
Beispiel #3
0
 public NCMBQuery Near(string name, NCMBGeoPoint value)
 {
     return(SetOperand(name, value.ToJson(), "$nearSphere"));
 }