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 @mongodb.driver.manual core/2dsphere 2dsphere Index

Parameters

properties

the properties, which must contain at least one