withSphericalOffset

inline fun LatLng.withSphericalOffset(distance: Double, heading: Double): LatLng

Offsets this LatLng from the provided distance and heading and returns the result.

Return

the resulting LatLng

Parameters

distance

the distance to offset by in meters

heading

the heading to offset by in degrees clockwise from north

See also

SphericalUtil.computeOffset