mongo 附近的点按指定字段排序
2015-12-09 15:44
246 查看
db.collection.aggregate([{$geoNear:{ "near":[ 118.116677, 24.463955], "spherical":true, "distanceField":"distance", "limit":5}}, {$sort:{"id":1}}])
相关文章推荐
- 解决无法访问Google问题.
- 【转】no resource found @integer/google_play_services_version whats this?
- Django 学习笔记<二>
- Google 开源项目的风格指南
- 谷歌重返中国:已在华注册“壳公司”
- Golang Import使用入门
- flex polygon 序列化为txt 文本
- 渲染多边形和填充多边形
- Django教程笔记:五、post get ajax异步操作
- 想玩Google + 的留下你的邮箱!
- 在Ubuntu安装go编译环境
- HDU_5586_Sum(最大连续子段和)
- 在category里加入成员变量
- Go interfaces make test stubbing easy
- Why Go Is Not Good
- GoConvey断言err和bool的方法
- 【操作系统】 银行家算法-banker's algorithm
- CodeForces 507E Breaking Good 最短路
- OC - 第七章 类的扩展: 类目Category, 延展Extension, 协议Protocol ( 二 )
- zzulioj 题目1813: good string(水题,要严谨啊)