firebase::
  
    #include <geo_point.h>
  
An immutable object representing a geographical point in Firestore.
Summary
The point is represented as a latitude/longitude pair.
Latitude values are in the range of [-90, 90]. Longitude values are in the range of [-180, 180].
| Constructors and Destructors | |
|---|---|
| GeoPoint()Creates a  GeoPointwith both latitude and longitude set to 0. | |
| GeoPoint(double latitude, double longitude)Creates a  GeoPointfrom the provided latitude and longitude values. | |
| GeoPoint(const GeoPoint & other)Copy constructor,  GeoPointis trivially copyable. | |
| GeoPoint(GeoPoint && other)Move constructor, equivalent to copying.  | 
| Public functions | |
|---|---|
| ToString() const  | std::stringReturns a string representation of this  GeoPointfor logging/debugging purposes. | 
| latitude() const  | doubleReturns the latitude value of this  GeoPoint. | 
| longitude() const  | doubleReturns the latitude value of this  GeoPoint. | 
| operator=(const GeoPoint & other)=default | GeoPoint &Copy assignment operator,  GeoPointis trivially copyable. | 
| operator=(GeoPoint && other)=default | GeoPoint &Move assignment operator, equivalent to copying.  | 
| Friend classes | |
|---|---|
| operator<< | friend std::ostream &Outputs the string representation of this  GeoPointto the given stream. | 
Public functions
GeoPoint
GeoPoint( double latitude, double longitude )
Creates a GeoPoint from the provided latitude and longitude values. 
| Details | |||||
|---|---|---|---|---|---|
| Parameters | 
 | 
GeoPoint
GeoPoint( const GeoPoint & other )=default
Copy constructor, GeoPoint is trivially copyable. 
ToString
std::string ToString() const
Returns a string representation of this GeoPoint for logging/debugging purposes. 
operator=
GeoPoint & operator=( const GeoPoint & other )=default
Copy assignment operator, GeoPoint is trivially copyable. 
operator=
GeoPoint & operator=( GeoPoint && other )=default
Move assignment operator, equivalent to copying.
Friend classes
operator<<
friend std::ostream & operator<<(std::ostream &out, const GeoPoint &geo_point)
Outputs the string representation of this GeoPoint to the given stream. 
See also:ToString() for comments on the representation format.