interpolate

@NonNull
open fun interpolate(    @NonNull from: LatLng,     @NonNull to: LatLng,     fraction: Double): LatLng

Returns the LatLng which lies the given fraction of the way between the origin LatLng and the destination LatLng.

Return

The interpolated LatLng.

Parameters

from

The LatLng from which to start.

to

The LatLng toward which to travel.

fraction

A fraction of the distance to travel.