kmongo / org.litote.kmongo / kotlin.reflect.KProperty / geoWithin

geoWithin

infix fun <T> KProperty<T>.geoWithin(geometry: Geometry): Bson (source)
infix fun <T> KProperty<T>.geoWithin(geometry: Bson): Bson (source)

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

Parameters

geometry - the bounding GeoJSON geometry object

Return
the filter

Mongodb
.driver.manual reference/operator/query/geoWithin/ $geoWithin