geosphere (version 1.2-15)

destPoint: Destination given bearing (direction) and distance, when following a Great Circle

Description

Calculate the destination point travelling along a (shortest distance) Great Circle, given a start point, initial direction (bearing), and distance.

Usage

destPoint(p, b, d, r = 6378137)

Arguments

p
Longitude and Latitude of point(s), in degrees. Can be a vector of two numbers, a matrix of 2 columns (first one is longitude, second is latitude) or a SpatialPoints* object
b
Numeric. Bearing (direction) in degrees
d
Numeric. Distance in the same unit as r (default is meters)
r
Numeric. Radius of the earth; default = 6378137 m

Value

  • A pair of coordinates (longitude/latitude)

References

http://www.movable-type.co.uk/scripts/latlong.html http://williams.best.vwh.net/ftp/avsig/avform.txt

Examples

Run this code
p <- c(5,52)
d <- destPoint(p,30,10000)

#final direction, when arriving at endpoint: 
finalBearing(d, p)

Run the code above in your browser using DataLab