destination

fun destination(origin: Position, distance: Double, bearing: Double, units: Units = Units.Kilometers): Position

Takes a position and calculates the location of a destination position given a distance in degrees, radians, miles, or kilometers; and bearing in degrees. This uses the Haversine formula to account for global curvature.

Return

destination position

Parameters

origin

starting point

distance

distance from the origin point

bearing

ranging from -180 to 180

units

Unit of distance

See also