infix fun <T> KProperty<T>.geoWithinPolygon(points: List<List<Double>>): Bson
(source)
Creates a filter that matches all documents containing a property with grid coordinates data that exist entirely within the specified polygon.
points
- a list of pairs of x, y coordinates. Any extra dimensions are ignored
Return
the filter
Mongodb
.driver.manual reference/operator/query/geoWithin/ $geoWithin
Mongodb
.driver.manual reference/operator/query/polygon/#op._S_polygon $polygon