# rhumbDestination

Returns the destination Point having travelled the given distance along a Rhumb line from the origin Point with the (varant) given bearing.
返回从原点出发,沿大圆线行驶给定距离和(varant)给定方位角后到达的终点。

参数

参数 类型 描述
origin Coord 开始点
distance number 从起点的距离
bearing number 方位角从北向南的范围在 -180 到 180 度之间
options Object 可选参数:见下文

options选项

属性 类型 默认值 描述
units string kilometers 可以是度、弧度、英里或公里
properties Object {} 将属性转换为目标点

返回

Feature <Point> - Destination point.

示例

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);
Last Updated: 7/3/2023, 9:59:14 PM