View source: R/analysis_distance.R
lonlat_to_bearing | R Documentation |
Calculate great circle distance and bearing between spatial coordinates.
lonlat_to_bearing(origin_lon, origin_lat, dest_lon, dest_lat)
origin_lon |
The origin longitude |
origin_lat |
The origin latitude |
dest_lon |
The destination longitude |
dest_lat |
The destination latitude |
# one degree longitude should equal approximately 111km at the equator
lonlat_to_bearing(0, 0, 1, 0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.