fun <T> KProperty<T>.geoWithinBox(lowerLeftX: Double, lowerLeftY: Double, upperRightX: Double, upperRightY: Double): Bson
(source)
Creates a filter that matches all documents containing a property with grid coordinates data that exist entirely within the specified box.
lowerLeftX
- the lower left x coordinate of the box
lowerLeftY
- the lower left y coordinate of the box
upperRightX
- the upper left x coordinate of the box
upperRightY
- the upper left y coordinate of the box
Return
the filter
Mongodb
.driver.manual reference/operator/query/geoWithin/ $geoWithin
Mongodb
.driver.manual reference/operator/query/box/#op._S_box $box