maps-utils-ktx / com.google.maps.android.ktx.utils / com.google.android.gms.maps.model.LatLng / sphericalHeading

sphericalHeading

fun LatLng.sphericalHeading(toLatLng: LatLng): Double

Computes the heading from this LatLng to toLatLng.

Parameters

toLatLng - the other LatLng to compute the heading to

Return
the heading expressed in degrees clockwise from North within the range -180,180

See Also

SphericalUtil.computeHeading