Skip to main content
Version: 7.3.0

rhumbDestination

描述

🌐 Description

返回沿着从起点点出发、以给定方位(varant)沿等航线行进指定距离后的目标点Point

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

参数

🌐 Parameters

名称类型描述
origin坐标起点
distance数字与起点的距离
bearing数字方位角,相对于正北方向,范围从 -180 到 180 度
options?对象可选参数 (默认 {})
options.units?单位支持所有有效的 Turf 单位 (默认 '公里')
options.properties?对象将属性翻译到目标点 (默认 {})

返回

🌐 Returns

Feature<Point> 目的地

示例

🌐 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(...);