Description Usage Arguments Details Value Author(s) References See Also Examples
Derives a SpatialLines class object showing the shortest path between the two geographic locations and based on the Haversine Formula for Great Circle distance.
1 |
lon1 |
longitude coordinate of the first point |
lon2 |
longitude coordinate of the second point |
lat1 |
latitude coordinate of the first point |
lat2 |
latitude coordinate of the second point |
ID |
(optional) point ID character |
n.points |
number of intermediate points |
print.geo |
prints the distance and bearing |
Number of points between the start and end point is derived using a simple formula:
round(sqrt(distc)/sqrt(2), 0)
where distc
is the Great Circle Distance.
Bearing is expressed in degrees from north. Distance is expressed in kilometers (Great Circle Distance).
Tomislav Hengl
fossil package (https://CRAN.R-project.org/package=fossil),
kml_layer.SpatialLines
, kml_layer.STTDF
, fossil::earth.bear
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.