public class

GeoPoint

extends Object
implements Comparable<GeoPoint>
java.lang.Object
   ↳ com.google.firebase.firestore.GeoPoint

Class Overview

Immutable class representing a GeoPoint in Firestore

Summary

Public Constructors
GeoPoint(double latitude, double longitude)
Construct a new GeoPoint using the provided latitude and longitude values.
Public Methods
int compareTo(GeoPoint other)
boolean equals(Object o)
double getLatitude()
double getLongitude()
int hashCode()
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.lang.Comparable

Public Constructors

public GeoPoint (double latitude, double longitude)

Construct a new GeoPoint using the provided latitude and longitude values.

Parameters
latitude double: The latitude of this GeoPoint in the range [-90, 90].
longitude double: The longitude of this GeoPoint in the range [-180, 180].

Public Methods

public int compareTo (GeoPoint other)

Parameters
other GeoPoint
Returns
int

public boolean equals (Object o)

Parameters
o Object
Returns
boolean

public double getLatitude ()

Returns
double The latitude value of this GeoPoint.

public double getLongitude ()

Returns
double The longitude value of this GeoPoint.

public int hashCode ()

Returns
int

public String toString ()

Returns
String