Learn R Programming

fossil (version 0.4.0)

new.lat.long: Find a New Latitude and Longitude

Description

Find a new location using an original location (latitude and longitude) along with a bearing and distance

Usage

new.lat.long(long, lat, bearing, distance)

Arguments

long

original longitude

lat

original latitude

bearing

bearing from original point to new location, degrees from North

distance

distance to location

Value

a vector of length 2 with the new latitude and longitude respectively

See Also

deg.dist, earth.bear

Examples

Run this code
# NOT RUN {
#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)
# }

Run the code above in your browser using DataLab