geoWithin

infix fun <T> KProperty<T>.geoWithin(geometry: Geometry): Bson
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