Calculate destination point(计算目标点(Calculate destination point))¶
Supported in: Batch, Faster, Streaming
Calculates the destination point along a specified path given a starting point, course, and distance.
Expression categories: Geospatial
Declared arguments¶
- Course: Current course in degrees.
Expression\ - Distance: Distance to destination in meters.
Expression\ - Starting point: Longitude and latitude for point a.
Expression\ - optional Calculation method: The path to follow along the surface of a spherical approximation of the earth. Defaults to great circle.
Enum\
Output type: GeoPoint
Examples¶
Example 1: Base case¶
Argument values:
- Course:
course - Distance:
distance - Starting point:
point_a - Calculation method:
GREAT_CIRCLE
| point_a | course | distance | Output |
|---|---|---|---|
| { latitude: 48.8567, longitude: 2.3508, } |
225.0 | 32000.0 | { latitude: 48.65279552300661, longitude: 2.0427666779658806, } |
Example 2: Base case¶
Argument values:
- Course:
course - Distance:
distance - Starting point:
point_a - Calculation method:
LOXODROME
| point_a | course | distance | Output |
|---|---|---|---|
| { latitude: 48.8567, longitude: 2.3508, } |
225.0 | 32000.0 | { latitude: 48.65320703115239, longitude: 2.0421403965968183, } |
Example 3: Null case¶
Argument values:
- Course:
course - Distance:
distance - Starting point:
point_a - Calculation method: null
| point_a | course | distance | Output |
|---|---|---|---|
| { latitude: 48.8567, longitude: 2.3508, } |
225.0 | 32000.0 | { latitude: 48.65279552300661, longitude: 2.0427666779658806, } |
Example 4: Edge case¶
Argument values:
- Course:
course - Distance:
distance - Starting point:
point_a - Calculation method:
LOXODROME
| point_a | course | distance | Output |
|---|---|---|---|
| { latitude: 42.779577, longitude: -156.581761, } |
10.0 | 8000000.0 | { latitude: 90.0, longitude: 0.0, } |
中文翻译¶
计算目标点(Calculate destination point)¶
支持:批处理(Batch)、快速处理(Faster)、流处理(Streaming)
根据给定的起点、航向和距离,沿指定路径计算目标点。
表达式类别: 地理空间(Geospatial)
声明的参数¶
- 航向(Course): 以度表示的当前航向。
表达式\ - 距离(Distance): 到目标点的距离,单位为米。
表达式\ - 起点(Starting point): 点a的经度和纬度。
表达式\ - 可选 计算方法(Calculation method): 沿地球球体近似表面所遵循的路径。默认为大圆(Great Circle)。
枚举\<大圆(Great Circle), 等角航线/恒向线(Loxodrome/Rhumb Line)>
输出类型: GeoPoint
示例¶
示例1:基本情况¶
参数值:
- 航向:
course - 距离:
distance - 起点:
point_a - 计算方法:
GREAT_CIRCLE
| point_a | course | distance | 输出 |
|---|---|---|---|
| { latitude: 48.8567, longitude: 2.3508, } |
225.0 | 32000.0 | { latitude: 48.65279552300661, longitude: 2.0427666779658806, } |
示例2:基本情况¶
参数值:
- 航向:
course - 距离:
distance - 起点:
point_a - 计算方法:
LOXODROME
| point_a | course | distance | 输出 |
|---|---|---|---|
| { latitude: 48.8567, longitude: 2.3508, } |
225.0 | 32000.0 | { latitude: 48.65320703115239, longitude: 2.0421403965968183, } |
示例3:空值情况¶
参数值:
- 航向:
course - 距离:
distance - 起点:
point_a - 计算方法: null
| point_a | course | distance | 输出 |
|---|---|---|---|
| { latitude: 48.8567, longitude: 2.3508, } |
225.0 | 32000.0 | { latitude: 48.65279552300661, longitude: 2.0427666779658806, } |
示例4:边界情况¶
参数值:
- 航向:
course - 距离:
distance - 起点:
point_a - 计算方法:
LOXODROME
| point_a | course | distance | 输出 |
|---|---|---|---|
| { latitude: 42.779577, longitude: -156.581761, } |
10.0 | 8000000.0 | { latitude: 90.0, longitude: 0.0, } |