Class LatLng (2.18.5)

public final class LatLng implements Serializable

A Google Cloud Datastore LatLng (represented by latitude and longitude in degrees). This class is immutable. See Also: Google Cloud Datastore Entities, Properties, and Keys

Inheritance

Object > LatLng

Implements

Serializable

Static Methods

of(double latitude, double longitude)

public static LatLng of(double latitude, double longitude)
Parameters
NameDescription
latitudedouble
longitudedouble
Returns
TypeDescription
LatLng

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getLatitude()

public double getLatitude()

Returns the latitude.

Returns
TypeDescription
double

getLongitude()

public double getLongitude()

Returns the longitude.

Returns
TypeDescription
double

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toPb()

protected LatLng toPb()
Returns
TypeDescription
com.google.type.LatLng

toString()

public String toString()
Returns
TypeDescription
String
Overrides