java.lang.Object | |
↳ | com.amazon.geo.mapsv2.model.LatLng |
Immutable class representing a geographic point on the map represented by a latitude/longitude pair, in degrees.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
latitude | Latitude, in degrees [-90, 90]. | ||||||||||
longitude | Longitude, in degrees [-180, 180). |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new
LatLng object with the given coordinates. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Two
LatLng objects are considered equal only if their
corresponding latitudes and longitudes are bitwise equal. | |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Latitude, in degrees [-90, 90].
Longitude, in degrees [-180, 180).
Creates a new LatLng
object with the given coordinates.
latitude | The latitude in degrees. This is clamped to fall within -90 and 90 degrees inclusive. |
---|---|
longitude | The longitude in degrees. This is normalized to fall within -180 degrees inclusive and 180 degrees exclusive. |
Two LatLng
objects are considered equal only if their
corresponding latitudes and longitudes are bitwise equal.