Class LatLng (2.25.1)

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
Name Description
latitude double
longitude double
Returns
Type Description
LatLng

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getLatitude()

public double getLatitude()

Returns the latitude.

Returns
Type Description
double

getLongitude()

public double getLongitude()

Returns the longitude.

Returns
Type Description
double

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

toPb()

protected LatLng toPb()
Returns
Type Description
com.google.type.LatLng

toString()

public String toString()
Returns
Type Description
String
Overrides