shell> curl -X PUT --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 201 Created
content-type: application/json; charset=utf-8
x-content-type-options: nosniff
{
"result" : [
{
"distance" : 222.38985328911744,
"_id" : "products/13619",
"_key" : "13619",
"_rev" : "_WnWW7Ci--B",
"loc" : [
-0.002,
0
],
"name" : "Name/-0.002/"
},
{
"distance" : 222.38985328911744,
"_id" : "products/13625",
"_key" : "13625",
"_rev" : "_WnWW7Cm--B",
"loc" : [
0.002,
0
],
"name" : "Name/0.002/"
},
{
"distance" : 444.779706578235,
"_id" : "products/13616",
"_key" : "13616",
"_rev" : "_WnWW7Ci--_",
"loc" : [
-0.004,
0
],
"name" : "Name/-0.004/"
}
],
"hasMore" : false,
"count" : 3,
"error" : false,
"code" : 201
}