Description Usage Arguments Value Examples
Add distance in the longitude direction to the indicate coordinate. The distance can be indicated on kilometers or miles
1 2 3 4 5 6 7 8 9 | moveLongitude(...)
## Default S3 method:
moveLongitude(latitude, longitude,
distance, units = "km", ...)
## S3 method for class 'Coordinate'
moveLongitude(coordinate, distance,
units = "km", ...)
|
latitude |
a latitude coordinate |
longitude |
a longitude coordinate |
distance |
the distance to add in km or miles |
units |
a string with the distance units (default kilometers) |
coordinate |
a coordinate class |
... |
other arguments |
a Coordinate object with the new coordinates
1 2 3 | # Add 10 kilometers to the east to a position
cord <- Coordinate(43, -8)
cord <- moveLongitude(cord, 10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.