geoWithinPolygon

@JvmName(name = "geoWithinPolygonExt")
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


fun <T> geoWithinPolygon(property: KProperty<T?>, 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

property

the data class property

points

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