geoWithinBox

fun <T> KProperty<T>.geoWithinBox(lowerLeftX: Double, lowerLeftY: Double, upperRightX: Double, upperRightY: Double): Bson

Creates a filter that matches all documents containing a property with grid coordinates data that exist entirely within the specified box.

Return

the filter

Parameters

fieldName

the field name

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