geoWithinBox

@JvmName(name = "geoWithinBoxExt")
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

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


fun <T> geoWithinBox(property: KProperty<T?>, 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

property

the data class property

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