maps-utils-ktx / com.google.maps.android.ktx.utils / com.google.android.gms.maps.model.LatLng / withSphericalOffset

withSphericalOffset

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

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

Parameters

distance - the distance to offset by in meters

heading - the heading to offset by in degrees clockwise from north

Return
the resulting LatLng

See Also

SphericalUtil.computeOffset