geo2dsphere

fun geo2dsphere(vararg properties: KProperty<*>): Bson
fun geo2dsphere(properties: Iterable<KProperty<*>>): Bson

Create an index key for an 2dsphere index on the given fields.

Return

the index specification

Parameters

properties

the properties, which must contain at least one