Skip to main content
Version: Next

rhumbDestination

Description

Returns the destination Point having travelled the given distance along a Rhumb line from the origin Point with the (varant) given bearing.

Parameters

NameTypeDescription
originCoordstarting point
distancenumberdistance from the starting point
bearingnumbervarant bearing angle ranging from -180 to 180 degrees from north
options?ObjectOptional parameters (default {})
options.units?stringcan be degrees, radians, miles, or kilometers (default 'kilometers')
options.properties?Objecttranslate properties to destination point (default {})

Returns

Examples

var pt = turf.point([-75.343, 39.984], { "marker-color": "F00" });
var distance = 50;
var bearing = 90;
var options = { units: "miles" };

var destination = turf.rhumbDestination(pt, distance, bearing, options);

Installation

$ npm install @turf/rhumb-destination

import { rhumbDestination } from "@turf/rhumb-destination";
const result = rhumbDestination(...);
$ npm install @turf/turf

import * as turf from "@turf/turf";
const result = turf.rhumbDestination(...);