calc_haversine_distance: Extract latitude and longitude from a provided object

View source: R/calc_haversine_distance.R

calc_haversine_distanceR Documentation

Extract latitude and longitude from a provided object

Description

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

Usage

calc_haversine_distance(point_1, point_2)

Arguments

point_1, point_2

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

Value

A vector of length 1 containing distance between points

See Also

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


ropensci/terrainr documentation built on July 8, 2024, 12:50 p.m.