destination library

Functions

calculateRhumbDestination(Position origin, num distance, num bearing, [num radius = earthRadius]) Position
destination(Point origin, num distance, num bearing, [Unit unit = Unit.kilometers]) Point
Takes a Point and calculates the location of a destination point given a distance in degrees, radians, miles, or kilometers; and bearing in degrees. This uses the Haversine formula to account for global curvature. For example:
destinationRaw(Position origin, num distance, num bearing, [Unit unit = Unit.kilometers]) Position
rhumbDestination(Point origin, num distance, num bearing, {Unit? unit = Unit.kilometers, Map<String, dynamic>? properties}) Feature<Point>
Returns the destination Point having travelled the given distance along a Rhumb line from the origin Point with the (varant) given bearing.