1
0
Fork 0
arangodb/Documentation/Examples/RestSimpleWithinRectangle.g...

36 lines
770 B
Plaintext

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
{
"result" : [
{
"_id" : "products/899281803",
"_key" : "899281803",
"_rev" : "899281803",
"name" : "Name/0.008/",
"loc" : [
0.008,
0
]
},
{
"_id" : "products/899085195",
"_key" : "899085195",
"_rev" : "899085195",
"name" : "Name/0.006/",
"loc" : [
0.006,
0
]
}
],
"hasMore" : false,
"count" : 2,
"error" : false,
"code" : 201
}