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