小编ras*_*ash的帖子

使用Couchbase搜索给定半径内的文档

我想写一个地理空间视图,该视图从给定的纬度和经度搜索半径一英里范围内的以下文档.我该怎么做呢?

{
   "agree_allowed":true,
   "assigned_by":"",
   "assigned_to":"",
   "comments_allowed":true,
   "location": {
    "coordinates": [
      "-74.168868",
      "40.854655"
    ],
    "type": "Point"
  },
   "subscribed":{
      "user_cfd29b81f0263a380507":true,
      "user_cfd29b81f0263a3805010":true
   },
   "type":"report",
   "user_id":"user_cfd29b81f0263a380507",
   "username":"test17"
}
Run Code Online (Sandbox Code Playgroud)

python couchbase couchbase-view

5
推荐指数
1
解决办法
363
查看次数

标签 统计

couchbase ×1

couchbase-view ×1

python ×1