创建方式:db.collection.ensureIndex({w:“2d”}) 插入数据: $near查询:查询距离某个点最近的点。 $qeoWithin查询:查询某个形状内的点。 矩形 圆形 多边形,最少要三边 相关文章: