destination: Destination point from start, bearing and distance along...

Description Usage Arguments References Examples

Description

Obtain a destination point from a given start point, initial bearing, and distance

Usage

1
2
3
4
5
6
7
8
9
  destination(...)

  ## Default S3 method:
 destination(latitude, longitude, brg,
    distance, units = "km", ...)

  ## S3 method for class 'Coordinate'
 destination(coordinate, brg,
    distance, units = "km", ...)

Arguments

latitude

a latitude coordinate

longitude

a longitude coordinate

brg

the initial bearing

distance

the distance to add in km or miles

units

a string with the distance units (default kilometers)

coordinate

a coordinate class

...

other argument

References

http://www.movable-type.co.uk/scripts/latlong.html

Examples

1
2
3
# Add 10 kilometers to icord
icord <- Coordinate(43, -8)
ecord <- destination(icord, 30, 10)

drodriguezperez/whereiam documentation built on May 15, 2019, 2:42 p.m.