geoIntersects

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

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

Return

the filter

Parameters

geometry

the bounding GeoJSON geometry object


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

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

Return

the filter

Parameters

property

the data class property

geometry

the bounding GeoJSON geometry object