FireDAC.Phys.MongoDBWrapper.TMongoPipeline.TGeoNear.Near
Delphi
function &Near(ALatitude, ALongitude: Extended): TGeoNear;
C++
TMongoPipeline::TGeoNear* __fastcall Near(System::Extended ALatitude, System::Extended ALongitude);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | FireDAC.Phys.MongoDBWrapper.pas FireDAC.Phys.MongoDBWrapper.hpp |
FireDAC.Phys.MongoDBWrapper | TGeoNear |
Description
Specifies the point for which to find the closest documents.
Use this method to set the point for which to find the closest documents. In MondoDB documentation, this poit is referred to as cental point.
This method defines the following input parameters:
ALatitude
: sets the central point latitude.ALongitude
: sets the central point longitude.
For more information, see the MongoDB documentation.