geoWithin

@JvmName(name = "geoWithinExt")
infix fun <T> KProperty<T?>.geoWithin(geometry: Geometry): Bson
@JvmName(name = "geoWithinExt")
infix fun <T> KProperty<T?>.geoWithin(geometry: Bson): Bson

Creates a filter that matches all documents containing a property with geospatial data that exists entirely within the specified shape.

Return

the filter

Parameters

geometry

the bounding GeoJSON geometry object


fun <T> geoWithin(property: KProperty<T?>, geometry: Geometry): Bson
fun <T> geoWithin(property: KProperty<T?>, geometry: Bson): Bson

Creates a filter that matches all documents containing a property with geospatial data that exists entirely within the specified shape.

Return

the filter

Parameters

property

the data class property

geometry

the bounding GeoJSON geometry object