geoWithinCenter

fun <T> KProperty<T>.geoWithinCenter(x: Double, y: Double, radius: Double): Bson

Creates a filter that matches all documents containing a property with grid coordinates data that exist entirely within the specified circle.

Return

the filter

Parameters

x

the x coordinate of the circle

y

the y coordinate of the circle

radius

the radius of the circle, as measured in the units used by the coordinate system