locationWithOffset

open fun locationWithOffset(source: LatLng, bearing: Float, distance: Double): LatLng

Calculates offset location given source location, heading (bearing), and distance.

Return

the new location

Parameters

source

the original coordinate

bearing

the bearing in DEGREES

distance

the offset distance in METERS