computeOffsetOrigin

open fun computeOffsetOrigin(to: LatLng, distance: Double, heading: Double): LatLng

Returns the location of origin when provided with a LatLng destination, meters travelled and original heading. Headings are expressed in degrees clockwise from North. This function returns null when no solution is available.

Parameters

to

The destination LatLng.

distance

The distance travelled, in meters.

heading

The heading in degrees clockwise from north.