Description Usage Arguments References Examples
Calculate the half-way point along a great circle path between the two points. The point can be calculated along a great-circle or a rhumb line.
1 2 3 4 5 6 7 8 9 |
latitude1 |
the first latitude coordinate |
longitude1 |
the first longitude coordinate |
latitude2 |
the second latitude coordinate |
longitude2 |
the second longitude coordinate |
coordinate1 |
the first coordinate class variable |
coordinate2 |
the second coordinate class variable |
line |
a string with the line used to calculate greatcircle or rhumb |
... |
other arguments |
http://www.movable-type.co.uk/scripts/latlong.html
1 2 3 4 5 6 7 8 | cord1 <- Coordinate(43, -8)
cord2 <- Coordinate(42, -7)
# Using great-circle
mcord <- midpoint(cord1, cord2)
# Using rhumb
mcord <- midpoint(cord1, cord2, line = 'rhumb')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.