destination

fun destination(distance: Double, bearing: Double): Coordinate

Returns a coordinate a certain Haversine distance away in the given bearing, preserving every other field.

Parameters

distance

distance from the starting point in meters

bearing

ranging from -180 to 180 in decimal degrees