Texonom
Texonom
/
Engineering
Engineering
/Data Engineering/DataBase/Database Type/NoSQL/Document DB/
mongoDB
mongoDB
/MongoDB Index/MongoDB 2dSphere/mongo $geoWithin/
mongo $box
Search

mongo $box

Only Return Point!!

$box - MongoDB Manual
The query calculates distances using flat (planar) geometry. Applications can use without having a geospatial index. However, geospatial indexes support much faster queries than the unindexed equivalents. The following example query returns all documents that are within the box having points at: , , , and .
$box - MongoDB Manual
https://docs.mongodb.com/manual/reference/operator/query/box/
$box - MongoDB Manual
 

Recommendations

Texonom
Texonom
/
Engineering
Engineering
/Data Engineering/DataBase/Database Type/NoSQL/Document DB/
mongoDB
mongoDB
/MongoDB Index/MongoDB 2dSphere/mongo $geoWithin/
mongo $box
Copyright Seonglae Cho