试图找出如何在long,lat值的数组上创建 Geo index
.
例如,这是一个表示路径的文档:
{
"name": "name1",
"points": [
[35.540350545197725, 32.97170341014862],
[35.54033998399973, 32.97186580952257],
[35.540339816361666, 32.97198101878166],
[35.54034476168454, 32.97209140844643]
]
},
我想找到靠近某个位置的所有路径 .
FOR path IN NEAR(Collection, 33.00, 35.52, 5, "distance")
RETURN {
name: path.name,
distance: path.distance
}
是否可以在数组上设置Geo索引?