rhumbDistance: Calculate distance between two points along a rhumb line

Description Usage Arguments References Examples

Description

The function calculates distances between the two points along a rhumb line. The rhumb lines are path of constant bearing and crosses all meridians at the same angle. The rhumb lines are generally longer than great-circle routes.

Usage

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

  ## Default S3 method:
 rhumbDistance(latitude1, longitude1,
    latitude2, longitude2, units = "km", ...)

  ## S3 method for class 'Coordinate'
 rhumbDistance(coordinate1,
    coordinate2, units = "km", ...)

Arguments

latitude1

the first latitude coordinate

longitude1

the first longitude coordinate

latitude2

the second latitude coordinate

longitude2

the second longitude coordinate

units

a string with the distance units (default kilometers)

coordinate1

the first coordinate class variable

coordinate2

the second coordinate class variable

...

other arguments

References

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

Examples

1
2
3
cord1    <- Coordinate(43, -8)
cord2    <- Coordinate(42, -7)
distance <- rhumbDistance(cord1, cord2)

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