Lat Lng
An immutable class representing a pair of latitude and longitude coordinates.
Out-of-range values are normalized instead of rejected: the latitude is clamped to the range -90 to 90 degrees, and a longitude outside the range -180 to 180 degrees is wrapped into it (for example 190 becomes -170).
Parameters
latitude
The latitude in degrees
longitude
The longitude in degrees Parcelable, e.g. for a android.os.Bundle or rememberSaveable.
Throws
if latitude or longitude is NaN or infinite