sdk-common / com.tomtom.online.sdk.common.location / LatLng / <init>

<init>

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.

Parameters

latitude - Double: latitude value

longitude - Double: longitude value

LatLng(@NonNull location: Location)

Instantiates a new LatLng object based on data from Location object.

Parameters

location - Location: a Location object