computeOffset

open fun computeOffset(from: LatLng, distance: Double, heading: Double): LatLng

Returns the LatLng resulting from moving a distance from an origin in the specified heading (expressed in degrees clockwise from north).

Parameters

from

The LatLng from which to start.

distance

The distance to travel.

heading

The heading in degrees clockwise from north.