FireDAC.Phys.MongoDBWrapper.TMongoPipeline.TGeoNear.Spherical
Delphi
function Spherical(AValue: Boolean): TGeoNear;
C++
TMongoPipeline::TGeoNear* __fastcall Spherical(bool AValue);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | FireDAC.Phys.MongoDBWrapper.pas FireDAC.Phys.MongoDBWrapper.hpp |
FireDAC.Phys.MongoDBWrapper | TGeoNear |
Description
Specifies whether to use the spherical geometry to calculate distances.
Use this property to specify whether to use the spherical geometry to calculate distances.
When AValue
is set to true, then MongoDB uses spherical geometry to calculate distances in meters if the specified (near) point is a GeoJSON point and in radians if the specified (near) point is a legacy coordinate pair. Otherwise, MongoDB uses 2d planar geometry to calculate distance between points.
For more information, refer to MongoDB documentation.