public class LatLng
extends java.lang.Object
implements com.google.maps.internal.StringJoin.UrlValue, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
double |
lat
The latitude of this location.
|
double |
lng
The longitude of this location.
|
Constructor and Description |
---|
LatLng()
Serialisation constructor.
|
LatLng(double lat,
double lng)
Constructs a location with a latitude/longitude pair.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
java.lang.String |
toString() |
java.lang.String |
toUrlValue() |
public double lat
public double lng
public LatLng(double lat, double lng)
lat
- The latitude of this location.lng
- The longitude of this location.public LatLng()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toUrlValue()
toUrlValue
in interface com.google.maps.internal.StringJoin.UrlValue
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object