shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/within-rectangle <<EOF
{
"collection" : "products",
"latitude1" : 0,
"longitude1" : 0,
"latitude2" : 0.2,
"longitude2" : 0.2,
"skip" : 1,
"limit" : 2
}
EOF
HTTP/1.1 201 Created
content-type: application/json; charset=utf-8
{
"result" : [
{
"_key" : "11818",
"_id" : "products/11818",
"_rev" : "11818",
"loc" : [
0.008,
0
],
"name" : "Name/0.008/"
},
{
"_key" : "11815",
"_id" : "products/11815",
"_rev" : "11815",
"loc" : [
0.006,
0
],
"name" : "Name/0.006/"
}
],
"hasMore" : false,
"count" : 2,
"error" : false,
"code" : 201
}