calc_haversine_distance: Extract latitude and longitude from a provided object

Description Usage Arguments Value See Also

View source: R/calc_haversine_distance.R

Description

This is an internal utility function to convert bounding boxes into coordinate pairs.

Usage

1
calc_haversine_distance(point_1, point_2, coord_units = "degrees")

Arguments

point_1, point_2

Coordinate pairs (as length-2 numeric vectors with the names "lat" and "lng") to calculate distance between.

coord_units

String indicating whether coordinates are in degrees ('"degrees"') or radians ('"radians"') Degrees stored in radians will be converted to degrees.

Value

A vector of length 1 containing distance between points

See Also

Other utilities: addbuff, deg_to_rad(), get_centroid(), rad_to_deg()


terrainr documentation built on Feb. 23, 2021, 9:06 a.m.