BearingBetweenTwoLongLatPoints: Returns bearing from a set of coordinates

Description Usage Arguments Details Value Author(s) Examples

View source: R/BearingBetweenTwoLongLatPoints.R

Description

Returns bearing in degrees for starting and ending longitude-latitude points

Usage

1
BearingBetweenTwoLongLatPoints(start_long, start_lat, end_long, end_lat)

Arguments

start_long

Decimalised longitude for start point.

start_lat

Decimalised latitude for start point.

end_long

Decimalised longitude for end point.

end_lat

Decimalised latitude for end point.

Details

Nothing yet.

Value

Bearing in degrees (0 or 360 for North, 90 for East, etc.).

Author(s)

Graeme T. Lloyd graemetlloyd@gmail.com

Examples

1
2
3
# Should return bearing of North (0):
BearingBetweenTwoLongLatPoints(start_long = 0, start_lat = 0,
  end_long = 0, end_lat = 1)

laurasoul/dispeRse documentation built on May 25, 2021, 4:50 a.m.