Para agentes de IA: hay un índice de documentación disponible en https://www.mongodb.com/es/docs/llms.txt — versiones en markdown de todas las páginas están disponibles agregando .md a cualquier ruta URL.
Docs Menu

MongoDB\Model\IndexInfo::is2dSphere()

Novedad 1.4 en la versión.:

MongoDB\Model\IndexInfo::is2dSphere()

Devuelve si el índice es un índice 2dsphere.

function is2dSphere(): boolean

Un booleano que indica si el índice es un índice 2dsphere.

<?php
$collection = (new MongoDB\Client)->selectCollection('test', 'places');
$collection->createIndex(['pos' => '2dsphere']);
foreach ($collection->listIndexes() as $index) {
if ($index->is2dSphere()) {
printf("%s has 2dsphereIndexVersion: %d\n", $index->getName(), $index['2dsphereIndexVersion']);
}
}

La vista de salida se ilustraría como sigue:

pos_2dsphere has 2dsphereIndexVersion: 3