查询一个2d索引
在平面上定义的形状内的点
db.<collection>.find( { <location field> :
{ $geoWithin :
{ $box|$polygon|$center : <coordinates>
} } } )db.places.find( { loc :
{ $geoWithin :
{ $box : [ [ 0 , 0 ] ,
[ 100 , 100 ] ]
} } } )球体上定义的圆内的点
接近平面上的一点
在平面上的精确匹配
最后更新于