# destination

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.


参数 类型 描述
origin Coord starting point
distance number distance from the origin point
bearing number ranging from -180 to 180
options Object Optional parameters: see below


属性 类型 默认值 描述
units string kilometers miles, kilometers, degrees, or radians
properties Object {} Translate properties to Point


Feature <Point> - destination point


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

var destination = turf.destination(point, distance, bearing, options);
Last Updated: 1/19/2021, 10:59:20 AM