# 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 开始点
distance number distance from the origin point
bearing number ranging from -180 to 180
options Object 可选参数:见下文


属性 类型 默认值 描述
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: 6/23/2023, 10:33:35 PM