geo2d

fun <T> geo2d(property: KProperty<T>): Bson

Create an index key for a 2d index on the given field.

Note: A 2d index is for data stored as points on a two-dimensional plane. The 2d index is intended for legacy coordinate pairs used in MongoDB 2.2 and earlier.

Return

the index specification @mongodb.driver.manual core/2d 2d index

Parameters

property

the property to create a 2d index on