lonlat_to_bearing: Calculate great circle distance and bearing between...

Description Usage Arguments Examples

View source: R/misc.R

Description

Calculate great circle distance and bearing between spatial coordinates.

Usage

1
lonlat_to_bearing(origin_lon, origin_lat, dest_lon, dest_lat)

Arguments

origin_lon

The origin longitude

origin_lat

The origin latitude

dest_lon

The destination longitude

dest_lat

The destination latitude

Examples

1
2
# one degree longitude should equal approximately 111km at the equator
lonlat_to_bearing(0, 0, 1, 0)

Michael-Stevens-27/silverblaze documentation built on May 28, 2021, 5:47 p.m.