fun <T> KProperty<T>.geoWithinCenter(x: Double, y: Double, radius: Double): Bson
(source)
Creates a filter that matches all documents containing a property with grid coordinates data that exist entirely within the specified circle.
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
Return
the filter
Mongodb
.driver.manual reference/operator/query/geoWithin/ $geoWithin
Mongodb
.driver.manual reference/operator/query/center/#op._S_center $center