computeSphericalOffsetOrigin

inline fun LatLng.computeSphericalOffsetOrigin(distance: Double, heading: Double): LatLng?

Attempts to compute the origin LatLng from this LatLng where distance meters have been traveled with heading value heading.

Return

the computed origin if a solution is available, otherwise, null

Parameters

distance

the distance traveled from origin in meters

heading

the heading from origin to this LatLng (measured in degrees clockwise from North)

See also

SphericalUtil.computeOffsetOrigin