23 #include "mongo/client/export_macros.h"
92 virtual std::vector<double> getValues()
const;
100 virtual std::pair<double, double> getValuesAsPair()
const;
108 virtual BSONObj toBSON()
const;
120 virtual double operator[](
size_t dimension)
const;
Utility functions for parsing numbers from strings.
Definition: compare_numbers.h:20
Represents a 2D geographic position (longitude, latitude).
Definition: coordinates2dgeographic.h:40
Definition: coordinates.h:28
double getLatitude() const
Get the latitude.
Definition: coordinates2dgeographic.h:82
C++ representation of a "BSON" object – that is, an extended JSON-style object in a binary represent...
Definition: bsonobj.h:78
double getLongitude() const
Get the longitude.
Definition: coordinates2dgeographic.h:73
static size_t MONGO_CLIENT_FUNC dimensionality()
Get the dimensionality of this coordinate type.
Definition: coordinates2dgeographic.h:127