geoWithinPolygon

infix fun <T> KProperty<T>.geoWithinPolygon(points: List<List<Double>>): Bson

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

Return

the filter

Parameters

points

a list of pairs of x, y coordinates. Any extra dimensions are ignored