mirror of https://gitee.com/bigwinds/arangodb
21 lines
465 B
Plaintext
21 lines
465 B
Plaintext
avocado> db.geo.near(0,0).distance("name");
|
|
{ "name" : "0_0",
|
|
"loc" : [ 0, 0 ],
|
|
"_id" : "144958:24840824",
|
|
"name" : 0 }
|
|
{ "name" : "0_10",
|
|
"loc" : [ 0, 10 ],
|
|
"_id" : "144958:24906360",
|
|
"name" : 1111949.2664455874 }
|
|
.
|
|
.
|
|
{ "name" : "-20_-10",
|
|
"loc" : [ -20, -10 ],
|
|
"_id" : "144958:19925624",
|
|
"name" : 2476171.4106209576 }
|
|
{ "name" : "-10_-20",
|
|
"loc" : [ -10, -20 ],
|
|
"_id" : "144958:22284920",
|
|
"name" : 2476171.4106209576 }
|
|
...more results...
|