new.lat.long {fossil} | R Documentation |
Find a new location using an original location (latitude and longitude) along with a bearing and distance
new.lat.long(long, lat, bearing, distance)
long |
original longitude |
lat |
original latitude |
bearing |
bearing from original point to new location, degrees from North |
distance |
distance to location |
a vector of length 2 with the new latitude and longitude respectively
Matthew Vavrek
#Travel from 0,0 to a new location at a bearing of 45 degrees
#from North (clockwise) and 1000 km away
new.lat.long(long = 0, lat = 0, bearing = 45, distance = 1000)