LatLng()
Default constructor required by Serializable
. Latitude and longitude are set to 0.0.
LatLng(latitude: Double, longitude: Double)
Instantiates a new LatLng object with provided latitude and longitude.
latitude
- Double: latitude value
longitude
- Double: longitude value
LatLng(@NonNull location: Location)
Instantiates a new LatLng object based on data from Location
object.
location
- Location: a Location object