java.lang.Object | |
↳ | com.google.android.gms.maps.model.LatLng |
An immutable class representing a pair of latitude and longitude coordinates, stored as degrees.
[Expand]
Inherited Constants | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR | |||||||||||
latitude | Latitude, in degrees. | ||||||||||
longitude | Longitude, in degrees. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a LatLng with the given latitude and longitude, measured in degrees.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Tests if this
LatLng is equal to another. | |||||||||||
[Expand]
Inherited Methods | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||||||||||||||||||||||||
From interface
android.os.Parcelable
|
Latitude, in degrees. This value is in the range [-90, 90].
Longitude, in degrees. This value is in the range [-180, 180).
Constructs a LatLng with the given latitude and longitude, measured in degrees.
latitude | The point's latitude. This will be clamped to between -90 degrees and +90 degrees inclusive. |
---|---|
longitude | The point's longitude. This will be normalized to be within -180 degrees inclusive and +180 degrees exclusive. |
Tests if this LatLng
is equal to another.
Two points are considered equal if and only if their latitudes are bitwise equal and their
longitudes are bitwise equal. This means that two LatLng
s that are very near, in
terms of geometric distance, might not be considered .equal()
.