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/11822",
"_key" : "11822",
"_rev" : "_WpTB-ai--_",
"loc" : [
-0.002,
0
],
"name" : "Name/-0.002/"
},
{
"distance" : 222.38985328911744,
"_id" : "products/11828",
"_key" : "11828",
"_rev" : "_WpTB-ai--D",
"loc" : [
0.002,
0
],
"name" : "Name/0.002/"
},
{
"distance" : 444.779706578235,
"_id" : "products/11819",
"_key" : "11819",
"_rev" : "_WpTB-ae--F",
"loc" : [
-0.004,
0
],
"name" : "Name/-0.004/"
}
],
"hasMore" : false,
"count" : 3,
"error" : false,
"code" : 201
}