Skip to content

geospatial

geospatial(): TranslationLibrary<MongoDbTranslation>

Returns the MongoDB binding of the geospatial library.

The library adds closed polygon containment, polygon intersection, and a great-circle distance bound over a stored GeoJSON Point. MongoDB evaluates every emitted operator without a geospatial index, and a 2dsphere index on the mapped field only improves selection performance.

TranslationLibrary<MongoDbTranslation>