computeOffsetOrigin

@Nullable
open fun computeOffsetOrigin(    @NonNull 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.

Return

A new point or null

Parameters

to

The destination LatLng.

distance

The distance travelled, in meters.

heading

The heading in degrees clockwise from north.