shell> curl -X PUT --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/simple/near <<EOF
{
"collection" : "products",
"latitude" : 0,
"longitude" : 0,
"skip" : 1,
"limit" : 3,
"distance" : "distance",
"radius" : 300
}
EOF
HTTP/1.1 Created
content-type: application/json; charset=utf-8
x-content-type-options: nosniff
{
"result" : [
{
"_id" : "products/71039",
"_key" : "71039",
"_rev" : "_ZXF6aBu--C",
"loc" : [
-0.002,
0
],
"name" : "Name/-0.002/",
"distance" : 222.3898532891175
},
{
"_id" : "products/71043",
"_key" : "71043",
"_rev" : "_ZXF6aBu--G",
"loc" : [
0.002,
0
],
"name" : "Name/0.002/",
"distance" : 222.3898532891175
},
{
"_id" : "products/71045",
"_key" : "71045",
"_rev" : "_ZXF6aBy---",
"loc" : [
0.004,
0
],
"name" : "Name/0.004/",
"distance" : 444.779706578235
}
],
"hasMore" : false,
"count" : 3,
"error" : false,
"code" : 201
}