bearing

fun bearing(lat1: Double, lon1: Double, lat2: Double, lon2: Double): Double(source)

Computes the initial bearing from point 1 to point 2.

Return

bearing in degrees (0 = north, 90 = east, etc.)


fun bearing(from: LatLng, to: LatLng): Double(source)

Overload accepting LatLng instances.