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
{
"result" : [
{
"distance" : 222.38985328911744,
"_id" : "products/11091",
"_key" : "11091",
"_rev" : "_UWx9plO---",
"loc" : [
-0.002,
0
],
"name" : "Name/-0.002/"
},
{
"distance" : 222.38985328911744,
"_id" : "products/11097",
"_key" : "11097",
"_rev" : "_UWx9plS---",
"loc" : [
0.002,
0
],
"name" : "Name/0.002/"
},
{
"distance" : 444.779706578235,
"_id" : "products/11088",
"_key" : "11088",
"_rev" : "_UWx9plK--_",
"loc" : [
-0.004,
0
],
"name" : "Name/-0.004/"
}
],
"hasMore" : false,
"count" : 3,
"error" : false,
"code" : 201
}