# rhumbBearing

Takes two points and finds the bearing angle between them along a Rhumb line i.e. the angle measured in degrees start the north line (0 degrees)
接受两个点,计算它们之间的大圆距离(以度为单位),即从北向南的方位角。

参数

参数 类型 描述
start Coord 开始点
end Coord 结束点
options Object 可选参数:见下文

options选项

属性 类型 默认值 描述
final boolean false 如果为真,则计算最终方位角

返回

number - 从北向南的方位角(十进制度数),范围在 -180 到 180 度之间(顺时针方向)

示例

var point1 = turf.point([-75.343, 39.984], {"marker-color": "#F00"});
var point2 = turf.point([-75.534, 39.123], {"marker-color": "#00F"});

var bearing = turf.rhumbBearing(point1, point2);
Last Updated: 6/23/2023, 10:33:35 PM