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
x-content-type-options: nosniff
{
"result" : [
{
"_key" : "13678",
"_id" : "products/13678",
"_rev" : "_WnWW7E6--_",
"name" : "Name/0.008/",
"loc" : [
0.008,
0
]
},
{
"_key" : "13675",
"_id" : "products/13675",
"_rev" : "_WnWW7E2--B",
"name" : "Name/0.006/",
"loc" : [
0.006,
0
]
}
],
"hasMore" : false,
"count" : 2,
"error" : false,
"code" : 201
}